Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-320

Update LangChain API Reference Documentation

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: AI/ML
    • Python Drivers

       

      Update the LangChain API doc with new index and query definitions 

      For instance

      # Use a filter to only retrieve documents from a specific paper
      docsearch.as_retriever(
          search_kwargs={'filter': {'paper_title':'GPT-4 Technical Report'}}
      ) 

      The above filter syntax should follow the new version, which is 

      qa_retriever = docsearch.as_retriever(
          search_kwargs={'filter': {'folderName': {'$eq': 'GPT-4'}}
      )

      It should also refer to creating a corresponding Vector Search Index.

            Assignee:
            prakul.agarwal@mongodb.com Prakul Agarwal
            Reporter:
            prakul.agarwal@mongodb.com Prakul Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: