Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,12 +20,9 @@ graph = Neo4jGraph(
|
|
20 |
password="_x8f-_aAQvs2NB0x6s0ZHSh3W_y-HrENDbgStvsUCM0"
|
21 |
)
|
22 |
|
23 |
-
# Create an instance of OpenAI embeddings
|
24 |
-
embedding = OpenAIEmbeddings(api_key=os.environ['OPENAI_API_KEY'])
|
25 |
-
|
26 |
# Initialize the vector index with Neo4j
|
27 |
vector_index = Neo4jVector.from_existing_graph(
|
28 |
-
|
29 |
graph=graph,
|
30 |
search_type="hybrid",
|
31 |
node_label="Document",
|
|
|
20 |
password="_x8f-_aAQvs2NB0x6s0ZHSh3W_y-HrENDbgStvsUCM0"
|
21 |
)
|
22 |
|
|
|
|
|
|
|
23 |
# Initialize the vector index with Neo4j
|
24 |
vector_index = Neo4jVector.from_existing_graph(
|
25 |
+
OpenAIEmbeddings(api_key=os.environ['OPENAI_API_KEY']),
|
26 |
graph=graph,
|
27 |
search_type="hybrid",
|
28 |
node_label="Document",
|