forked from deepset-ai/haystack-core-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request deepset-ai#34 from Anant/integrate_2.0_changes
use new Document dataclass
- Loading branch information
Showing
5 changed files
with
142 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from pathlib import Path | ||
|
||
from haystack.pipeline_utils import build_indexing_pipeline | ||
|
||
from astra_store.document_store import AstraDocumentStore | ||
|
||
# We support many different databases. Here we load a simple and lightweight in-memory document store. | ||
document_store = AstraDocumentStore() | ||
|
||
# Let's now build indexing pipeline that indexes PDFs and text files from a test folder. | ||
indexing_pipeline = build_indexing_pipeline( | ||
document_store=document_store, embedding_model="sentence-transformers/all-mpnet-base-v2" | ||
) | ||
result = indexing_pipeline.run(files=list(Path("../../test/test_files").iterdir())) | ||
print(result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
pydantic==1.10.13 | ||
canals==0.9.0 | ||
haystack-ai | ||
requests~=2.31.0 | ||
pytest~=7.4.3 | ||
pytest-cov | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters