LangChain: FullTextRetriever search API is too limiting

XMLWordPrintableJSON

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

      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
              Reporter:
              Casey Clements
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: