Skip to content

Commit

Permalink
use llama3.1 for structuring query
Browse files Browse the repository at this point in the history
  • Loading branch information
Taniya-Das committed Aug 9, 2024
1 parent 4f2a095 commit 06b3b77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion structured_query/llm_service_structured_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"NumberOfInstances"
]

chain = create_query_structuring_chain(document_content_description, content_attr, model = "llama3")
chain = create_query_structuring_chain(document_content_description, content_attr, model = "llama3.1")

from tenacity import retry, retry_if_exception_type, stop_after_attempt
from langchain_community.query_constructors.chroma import ChromaTranslator
Expand Down
3 changes: 2 additions & 1 deletion structured_query/llm_service_structured_query_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import sys
from langchain_community.chat_models import ChatOllama
# from langchain_ollama.llms import OllamaLLM

from langchain.chains.query_constructor.base import (
get_query_constructor_prompt,
Expand All @@ -16,7 +17,7 @@

attribute_info = attribute_info[1:]

def create_query_structuring_chain(document_content_description, content_attr, model = "llama3"):
def create_query_structuring_chain(document_content_description, content_attr, model = "llama3.1"):

prompt = get_query_constructor_prompt(
document_contents=document_content_description,
Expand Down

0 comments on commit 06b3b77

Please sign in to comment.