Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +4 -4
functions.py
CHANGED
@@ -43,8 +43,8 @@ def setup_vector_db():
|
|
43 |
|
44 |
nist_chunks = text_splitter.split_documents(nist_doc)
|
45 |
|
46 |
-
|
47 |
-
embeddings_small = OpenAIEmbeddings(model="text-embedding-3-small")
|
48 |
|
49 |
qdrant_client = QdrantClient(":memory:") # set Qdrant DB and its location (in-memory)
|
50 |
|
@@ -69,8 +69,8 @@ def setup_vector_db():
|
|
69 |
|
70 |
# define a global variable to store the retriever object
|
71 |
retriever = setup_vector_db()
|
72 |
-
|
73 |
-
qa_gpt4_llm = ChatOpenAI(model="gpt-4o-mini", temperature=0) # GPT-4o-mini model
|
74 |
|
75 |
# define a template for the RAG model
|
76 |
rag_template = """
|
|
|
43 |
|
44 |
nist_chunks = text_splitter.split_documents(nist_doc)
|
45 |
|
46 |
+
embeddings_small = AzureOpenAIEmbeddings(azure_deployment="text-embedding-3-small")
|
47 |
+
# embeddings_small = OpenAIEmbeddings(model="text-embedding-3-small")
|
48 |
|
49 |
qdrant_client = QdrantClient(":memory:") # set Qdrant DB and its location (in-memory)
|
50 |
|
|
|
69 |
|
70 |
# define a global variable to store the retriever object
|
71 |
retriever = setup_vector_db()
|
72 |
+
qa_gpt4_llm = AzureChatOpenAI(azure_deployment="gpt-4o-mini", temperature=0) # GPT-4o-mini model
|
73 |
+
# qa_gpt4_llm = ChatOpenAI(model="gpt-4o-mini", temperature=0) # GPT-4o-mini model
|
74 |
|
75 |
# define a template for the RAG model
|
76 |
rag_template = """
|