Pijush2023 commited on
Commit
c8dd9c0
·
verified ·
1 Parent(s): a53d4df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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
- embeddings=embedding,
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",