Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ from llama_index import GPTSimpleVectorIndex, SimpleDirectoryReader
|
|
21 |
|
22 |
index = GPTSimpleVectorIndex.load_from_disk('index.json')
|
23 |
|
24 |
-
|
25 |
response = index.query(query)
|
26 |
return response
|
27 |
|
@@ -37,7 +37,7 @@ tools = [
|
|
37 |
]
|
38 |
|
39 |
prefix = """Give a detailed answer to the question"""
|
40 |
-
suffix = """Give answer in bullet points"
|
41 |
|
42 |
Question: {input}
|
43 |
{agent_scratchpad}"""
|
|
|
21 |
|
22 |
index = GPTSimpleVectorIndex.load_from_disk('index.json')
|
23 |
|
24 |
+
def querying_db(query: str):
|
25 |
response = index.query(query)
|
26 |
return response
|
27 |
|
|
|
37 |
]
|
38 |
|
39 |
prefix = """Give a detailed answer to the question"""
|
40 |
+
suffix = """Give answer in bullet points"""
|
41 |
|
42 |
Question: {input}
|
43 |
{agent_scratchpad}"""
|