Support setting vector_db as a param (#2313)
* Added vectordb base and chromadb * Remove timer and unused functions * Added filter by distance * Added test utils * Fix format * Fix type hint of dict * Rename test * Add test chromadb * Fix test no chromadb * Add coverage * Don't skip test vectordb utils * Add types * Fix tests * Fix docs build error * Add types to base * Update base * Update utils * Update chromadb * Add get_docs_by_ids * Improve docstring * Update init params * Update init vector db * Add get all docs * Move chroma_results_to_query_results to utils * Add init vectordb * Convert format of results for old version * Improve type hints * Update get_context for new query results format * Fix typo * Improve init db * Update default folder * Update logger * Update init, add embedding func * Update distance_threshold * Fix logger name * Update qdrant * Fix init db * Update notebooks * Use kwargs to improve readability * Improve docstring of vectordb, add two attributes * Add db_config * Update gitignore * Update comments * Add source * Fix file downloaded from urls have the same name * Remove files added by mistake * Improve docstring * Update docstring Co-authored-by: Chi Wang <wang.chi@microsoft.com> * Update docstring * Update docstring --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com>
L
Li Jiang committed
c4e570393db9d2c2d3058e271ca2e46473bd8074
Parent: 4ab8a88
Committed by GitHub <noreply@github.com>
on 4/17/2024, 8:30:05 AM