Skip to content

Commit

Permalink
feat: Add Elasticsearch VectorStore Component with Ingest and Advance…
Browse files Browse the repository at this point in the history
…d Search Capabilities (#3899)

* feat: adding Elasticsearch  VectorStore component code

* update: adding langchain-elasticsearch dependency

* update: adding langchain-elasticsearch dependency (ruff format fix)

* Add `langchain-elasticsearch` dependency to pyproject.toml

* Refactor type hints to use PEP 585 syntax in Elasticsearch vector store component

* Refactor ElasticsearchVectorStoreComponent for improved readability and error handling

- Consolidated import statements and removed unused imports.
- Reformatted long strings for better readability.
- Enhanced error messages with variable assignment for clarity.
- Removed redundant else clause in search_documents method.

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
  • Loading branch information
joaoguilhermeS and ogabrielluiz authored Oct 3, 2024
1 parent 1128365 commit 75ffe0b
Show file tree
Hide file tree
Showing 4 changed files with 467 additions and 0 deletions.
119 changes: 119 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ dependencies = [
"pydantic-settings==2.4.0",
"ragstack-ai-knowledge-store>=0.2.1",
"duckduckgo-search>=6.2.11",
"langchain-elasticsearch>=0.2.0",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -229,6 +230,7 @@ langchain-unstructured = "^0.1.2"
pydantic-settings = "2.4.0"
ragstack-ai-knowledge-store = "^0.2.1"
duckduckgo-search = "^6.2.12"
langchain-elasticsearch = "^0.2.0"
opensearch-py = "^2.7.1"


Expand Down
Loading

0 comments on commit 75ffe0b

Please sign in to comment.