Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4253

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
    • Labels:
    • 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: