Spaces:
Sleeping
Sleeping
Update query_data.py
Browse files- query_data.py +1 -3
query_data.py
CHANGED
@@ -3,8 +3,6 @@ from langchain.embeddings import OpenAIEmbeddings
|
|
3 |
from llamaapi import LlamaAPI
|
4 |
from langchain.prompts import ChatPromptTemplate
|
5 |
import os
|
6 |
-
import nest_asyncio
|
7 |
-
|
8 |
|
9 |
# Constants
|
10 |
CHROMA_PATH = "chroma"
|
@@ -21,7 +19,7 @@ Answer the question based on the above context: {question}
|
|
21 |
def generate_reworded_question(prompt):
|
22 |
|
23 |
try:
|
24 |
-
|
25 |
llama = LlamaAPI('LL-0tVJ5OwMLdglnL5Okd94ScFHyT6FMPP33oClu8i5cXWPScRswldmqXI7VH1JaT3x')
|
26 |
|
27 |
# API Request
|
|
|
3 |
from llamaapi import LlamaAPI
|
4 |
from langchain.prompts import ChatPromptTemplate
|
5 |
import os
|
|
|
|
|
6 |
|
7 |
# Constants
|
8 |
CHROMA_PATH = "chroma"
|
|
|
19 |
def generate_reworded_question(prompt):
|
20 |
|
21 |
try:
|
22 |
+
|
23 |
llama = LlamaAPI('LL-0tVJ5OwMLdglnL5Okd94ScFHyT6FMPP33oClu8i5cXWPScRswldmqXI7VH1JaT3x')
|
24 |
|
25 |
# API Request
|