sobelio / llm-chain

`llm-chain` is a powerful rust crate for building chains in large language models allowing you to summarise text and complete complex tasks
https://llm-chain.xyz
MIT License
1.3k stars 128 forks source link

Qdrant VectorStore: ability to set filters for querying #228

Closed JohnTheCoolingFan closed 9 months ago

JohnTheCoolingFan commented 10 months ago

Thsi is a feature request to add ability to set filters (qdrant_client::qdrant::SearchPoint::filter field in qdranct_client). This can be used to filter out documents using adrant's builtin tools instead of filtering the VectorStore::similarity_search result.

My suggestion is to add an argument to llm_chain_qdrant::Qdrant::new that allows optionally setting filters. This suggestion is based on the way langchain shaped their vector store for qdrant.