Skip to content

Commit

Permalink
Merge pull request #113 from langchain-ai/add-retriever-24.10
Browse files Browse the repository at this point in the history
add new retriever models: nvidia/llama-3.2-nv-embedqa-1b-v1 and nvidia/llama-3.2-nv-rerankqa-1b-v1
  • Loading branch information
mattf authored Oct 25, 2024
2 parents 8e6d380 + 77b7982 commit cd48c4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions libs/ai-endpoints/langchain_nvidia_ai_endpoints/_statics.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,11 @@ def validate_client(self) -> "Model":
model_type="embedding",
client="NVIDIAEmbeddings",
),
"nvidia/llama-3.2-nv-embedqa-1b-v1": Model(
id="nvidia/llama-3.2-nv-embedqa-1b-v1",
model_type="embedding",
client="NVIDIAEmbeddings",
),
}

RANKING_MODEL_TABLE = {
Expand All @@ -612,6 +617,12 @@ def validate_client(self) -> "Model":
client="NVIDIARerank",
endpoint="https://ai.api.nvidia.com/v1/retrieval/nvidia/nv-rerankqa-mistral-4b-v3/reranking",
),
"nvidia/llama-3.2-nv-rerankqa-1b-v1": Model(
id="nvidia/llama-3.2-nv-rerankqa-1b-v1",
model_type="ranking",
client="NVIDIARerank",
endpoint="https://ai.api.nvidia.com/v1/retrieval/nvidia/llama-3_2-nv-rerankqa-1b-v1/reranking",
),
}

COMPLETION_MODEL_TABLE = {
Expand Down
2 changes: 1 addition & 1 deletion libs/ai-endpoints/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langchain-nvidia-ai-endpoints"
version = "0.3.2"
version = "0.3.3"
description = "An integration package connecting NVIDIA AI Endpoints and LangChain"
authors = []
readme = "README.md"
Expand Down

0 comments on commit cd48c4a

Please sign in to comment.