Spaces:
Running
Running
minor
Browse files
app.py
CHANGED
@@ -148,7 +148,7 @@ if st.button('Submit'):
|
|
148 |
st.session_state['count_checked'] = 0
|
149 |
st.session_state['checked_boxes'] = []
|
150 |
|
151 |
-
|
152 |
res = openai.Embedding.create(model=EMBEDDING_MODEL, input=[query], api_key=OPENAI_API_KEY)
|
153 |
xq = res['data'][0]['embedding']
|
154 |
out = query_pinecone(xq, top_k=TOP_K, include_metadata=True)
|
|
|
148 |
st.session_state['count_checked'] = 0
|
149 |
st.session_state['checked_boxes'] = []
|
150 |
|
151 |
+
### call OpenAI text-embedding
|
152 |
res = openai.Embedding.create(model=EMBEDDING_MODEL, input=[query], api_key=OPENAI_API_KEY)
|
153 |
xq = res['data'][0]['embedding']
|
154 |
out = query_pinecone(xq, top_k=TOP_K, include_metadata=True)
|