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

LangChain: FullTextRetriever search API is too limiting

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: langchain-mongodb-0.2
    • Component/s: AI/ML, LangChain
    • None
    • Python Drivers

      Context

      The $search query should be more flexible. Our default may be ok, but one should be able to override it with something arbitrarily flexible. (e.g. a compound filter with text wildcard star).

      We do this sort of open-ended style in post-filter.
       

          pipeline = [
              {
                  "$search": {
                      "index": index_name,
                      "text": {"query": query, "path": search_field},  
                  }
              }
          ]
      

      Definition of done

      What must be done to consider the task complete?

      Pitfalls

      What should the implementer watch out for? What are the risks?

            Assignee:
            Unassigned Unassigned
            Reporter:
            casey.clements@mongodb.com Casey Clements
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: