Commit Graph

11 Commits

Author SHA1 Message Date
Mr. Kutin
e9f0a1fa4a Add BM25 hybrid search (dense + sparse vectors with RRF)
Some checks failed
pre-commit / main (push) Has been cancelled
Run Tests / Python 3.10 (push) Has been cancelled
Run Tests / Python 3.11 (push) Has been cancelled
Run Tests / Python 3.12 (push) Has been cancelled
Run Tests / Python 3.13 (push) Has been cancelled
- Add SparseTextEmbedding("Qdrant/bm25") to FastEmbedProvider for BM25 tokenization
- Add sparse vector config (IDF modifier) to collection creation
- Store both dense and sparse vectors per document
- Use Qdrant prefetch + Reciprocal Rank Fusion for hybrid search
- Add HYBRID_SEARCH env var (default: false) for backward compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 10:27:52 +03:00
George
28bf298a32 new: update type hints (#64)
* new: update type hints

* fix: do not pass location and path to qdrant client, and do not accept them together

* new: update settings tests

* fix: revert removal of local path
2025-06-12 00:55:07 +04:00
Kacper Łukawski
7aad8ebb3c Support multiple collections (#26)
* Allow passing the collection name in each request to override the default

* Allow getting the collection names in QdrantConnector

* get vector size from model description

* ruff format

* add isort

* apply pre-commit hooks

---------

Co-authored-by: generall <andrey@vasnetsov.com>
2025-04-07 11:16:45 +02:00
Kacper Łukawski
bd155b13d0 Add metadata support and integration tests for QdrantConnector (#25) 2025-03-10 17:06:26 +01:00
Kacper Łukawski
b9f773e99c Handle parameters with environmental variables only (#24)
* Switch to Typer to read the CLI parameters and options

* Rely on environmental variables only

* Fix tests

* Update README
2025-03-10 16:36:31 +01:00
Kacper Łukawski
18cc93f6c8 Implement the server with FastMCP 2025-03-10 14:21:13 +01:00
Kacper Łukawski
f8d3cc474b Add custom server implementation to ease the development of the tools 2025-03-07 18:11:15 +01:00
Kacper Łukawski
bf471783fd Refactor server and embedding provider to improve modularity
- Modify `serve()` function to accept a pre-configured QdrantConnector
- Update `create_embedding_provider()` to simplify model name handling
- Improve error handling and parameter passing in server tools
- Restructure main function to create connector and server more explicitly
2025-03-07 13:08:03 +01:00
Kacper Łukawski
8afd73849c Fix compatibility with the previous versions 2025-03-05 23:42:19 +01:00
Kacper Łukawski
6aa21b6d99 Run pre-commit 2025-03-05 22:54:21 +01:00
Kacper Łukawski
56f1c797fc Abstract the embedding providers 2025-03-05 22:50:27 +01:00