Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ embed = OpenAIEmbeddings(
|
|
37 |
|
38 |
# ========== PART 2 ==========
|
39 |
index_name='splade'
|
40 |
-
namespace_name='
|
41 |
pc = Pinecone(api_key=PINE_API_KEY)
|
42 |
index = pc.Index(index_name)
|
43 |
|
@@ -133,9 +133,9 @@ def generate_response(prompt):
|
|
133 |
sources_txt = "\n\nSources:\n" + "\n".join(sources)
|
134 |
yield sources_txt
|
135 |
|
136 |
-
question = "How can I do hybrid search with a pinecone database?"
|
137 |
-
answer = generate_response(question)
|
138 |
-
print(answer)
|
139 |
|
140 |
# ==================== THE REST OF THE STREAMLIT APP ====================
|
141 |
|
|
|
37 |
|
38 |
# ========== PART 2 ==========
|
39 |
index_name='splade'
|
40 |
+
namespace_name='HiperGator2'
|
41 |
pc = Pinecone(api_key=PINE_API_KEY)
|
42 |
index = pc.Index(index_name)
|
43 |
|
|
|
133 |
sources_txt = "\n\nSources:\n" + "\n".join(sources)
|
134 |
yield sources_txt
|
135 |
|
136 |
+
# question = "How can I do hybrid search with a pinecone database?"
|
137 |
+
# answer = generate_response(question)
|
138 |
+
# print(answer)
|
139 |
|
140 |
# ==================== THE REST OF THE STREAMLIT APP ====================
|
141 |
|