Skip to content

Commit

Permalink
Integrate VectorStore from Elasticsearch client
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjakob committed May 13, 2024
1 parent 48e0a26 commit e1ef2ea
Show file tree
Hide file tree
Showing 8 changed files with 375 additions and 419 deletions.
20 changes: 0 additions & 20 deletions llama-index-finetuning/tests/test_base.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ lint: ## Run linters: pre-commit (black, ruff, codespell) and mypy
pre-commit install && git ls-files | xargs pre-commit run --show-diff-on-failure --files

test: ## Run tests via pytest.
pytest tests
poetry run pytest tests

watch-docs: ## Build and watch documentation.
sphinx-autobuild docs/ docs/_build/html --open-browser --watch $(GIT_ROOT)/llama_index/
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
from llama_index.vector_stores.elasticsearch.base import ElasticsearchStore

__all__ = ["ElasticsearchStore"]
from elasticsearch.helpers.vectorstore import (
AsyncBM25Strategy,
AsyncSparseVectorStrategy,
AsyncDenseVectorStrategy,
AsyncRetrievalStrategy,
)

__all__ = [
"AsyncBM25Strategy",
"AsyncDenseVectorStrategy",
"AsyncRetrievalStrategy",
"AsyncSparseVectorStrategy",
"ElasticsearchStore",
]
Loading

0 comments on commit e1ef2ea

Please sign in to comment.