Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VoyageAI Reranker module #809

Merged
merged 15 commits into from
Oct 8, 2024
Prev Previous commit
Next Next commit
apply voyage_client
  • Loading branch information
bwook00 committed Oct 7, 2024
commit 7d992f6d59c0ffd3cd4f75e7aa1136582ae5fe91
4 changes: 2 additions & 2 deletions autorag/nodes/passagereranker/voyageai.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _pure(
"""
tasks = [
voyageai_rerank_pure(
self.client, query, contents, ids, top_k=top_k, model=model
self.voyage_client, model, query, contents, ids, top_k, truncation
)
for query, contents, ids in zip(queries, contents_list, ids_list)
]
Expand All @@ -73,7 +73,7 @@ def _pure(


async def voyageai_rerank_pure(
voyage_client: voyageai.Client,
voyage_client: voyageai.AsyncClient,
model: str,
query: str,
documents: List[str],
Expand Down
Loading