Skip to content

Commit

Permalink
Merge pull request #26 from deepset-ai/masci-patch-2
Browse files Browse the repository at this point in the history
Update jina-embeddings-v2-legal-analysis-rag.ipynb
  • Loading branch information
masci authored Jan 23, 2024
2 parents 550e8c4 + a7011ec commit aac02ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notebooks/jina-embeddings-v2-legal-analysis-rag.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
},
"outputs": [],
"source": [
"from chroma_haystack.document_store import ChromaDocumentStore\n",
"from haystack_integrations.document_stores.chroma import ChromaDocumentStore\n",
"document_store = ChromaDocumentStore()"
]
},
Expand All @@ -139,11 +139,11 @@
"from haystack.components.writers import DocumentWriter\n",
"from haystack.components.preprocessors import DocumentCleaner\n",
"from haystack.components.preprocessors import DocumentSplitter\n",
"from chroma_haystack.retriever import ChromaEmbeddingRetriever\n",
"from haystack_integrations.components.retrievers.chroma import ChromaEmbeddingRetriever\n",
"from haystack.document_stores.types import DuplicatePolicy\n",
"\n",
"from jina_haystack.document_embedder import JinaDocumentEmbedder\n",
"from jina_haystack.text_embedder import JinaTextEmbedder\n",
"from haystack_integrations.components.embedders.jina import JinaDocumentEmbedder\n",
"from haystack_integrations.components.embedders.jina import JinaTextEmbedder\n",
"\n",
"fetcher = LinkContentFetcher()\n",
"converter = PyPDFToDocument()\n",
Expand Down Expand Up @@ -207,7 +207,7 @@
"from haystack.components.generators import HuggingFaceTGIGenerator\n",
"from haystack.components.builders.prompt_builder import PromptBuilder\n",
"\n",
"from jina_haystack.text_embedder import JinaTextEmbedder\n",
"from haystack_integrations.components.embedders.jina import JinaTextEmbedder\n",
"prompt = \"\"\" Answer the question, based on the\n",
"content in the documents. If you can't answer based on the documents, say so.\n",
"\n",
Expand Down

0 comments on commit aac02ca

Please sign in to comment.