Skip to content

Commit

Permalink
Update do_graphlookup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RichmondAlake authored Jan 16, 2025
1 parent ddb662e commit ee16519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/graph_rag_demo/do_graphlookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def graph_lookup(node_name,max_depth):
graph_lookup_docs = []
try:
uri = os.getenv("ATLAS_CONNECTION_STRING")
client = MongoClient(uri)
client = MongoClient(uri, appname="devrel.showcase.apps.graph_rag_demo")
database = client["langchain_db"]
collection = database["nodes_relationships"]
pipeline = [
Expand Down Expand Up @@ -38,4 +38,4 @@ def graph_lookup(node_name,max_depth):
finally:
client.close()
pprint(graph_lookup_docs)
return graph_lookup_docs
return graph_lookup_docs

0 comments on commit ee16519

Please sign in to comment.