Skip to content

Commit

Permalink
Switch to voyage-law-2 in the voyageai examples (#222)
Browse files Browse the repository at this point in the history
* Update the VoyageAI documantation page

* Switch to voyage-law-2 in the voyageai examples
  • Loading branch information
fzowl authored May 20, 2024
1 parent 224571b commit 50a0029
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integrations/voyage.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ retriever = InMemoryEmbeddingRetriever(document_store=doc_store)
doc_writer = DocumentWriter(document_store=doc_store)

doc_embedder = VoyageDocumentEmbedder(
model="voyage-2",
model="voyage-law-2",
input_type="document",
)
text_embedder = VoyageTextEmbedder(model="voyage-2", input_type="query")
text_embedder = VoyageTextEmbedder(model="voyage-law-2", input_type="query")

# Indexing Pipeline
indexing_pipeline = Pipeline()
Expand All @@ -113,7 +113,7 @@ print(f"Embedding of first Document: {doc_store.filter_documents()[0].embedding}
Query the Semantic Search Pipeline using the `InMemoryEmbeddingRetriever` and `VoyageTextEmbedder`:

```python
text_embedder = VoyageTextEmbedder(model="voyage-2", input_type="query")
text_embedder = VoyageTextEmbedder(model="voyage-law-2", input_type="query")

# Query Pipeline
query_pipeline = Pipeline()
Expand Down

0 comments on commit 50a0029

Please sign in to comment.