-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve discovery of graph schema using database statistics. Update documentation accordingly #19244
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mhavey
Thanks for making these changes. Left some suggestions to simplify the code. I can help fix the notebook lint issues, once you have made these updates.
"GRAPH_NOTEBOOK_HOST= os.popen(\"source ~/.bashrc ; echo $GRAPH_NOTEBOOK_HOST\").read().split(\"\\n\")[0]\n", | ||
"GRAPH_NOTEBOOK_PORT= os.popen(\"source ~/.bashrc ; echo $GRAPH_NOTEBOOK_PORT\").read().split(\"\\n\")[0]\n", | ||
"[GRAPH_NOTEBOOK_HOST, GRAPH_NOTEBOOK_PORT]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would os.environ
work here?
"GRAPH_NOTEBOOK_HOST= os.popen(\"source ~/.bashrc ; echo $GRAPH_NOTEBOOK_HOST\").read().split(\"\\n\")[0]\n", | |
"GRAPH_NOTEBOOK_PORT= os.popen(\"source ~/.bashrc ; echo $GRAPH_NOTEBOOK_PORT\").read().split(\"\\n\")[0]\n", | |
"[GRAPH_NOTEBOOK_HOST, GRAPH_NOTEBOOK_PORT]" | |
"import os\n\n", | |
"GRAPH_NOTEBOOK_HOST = os.environ.get(\"GRAPH_NOTEBOOK_HOST\")\n", | |
"GRAPH_NOTEBOOK_PORT = os.environ.get(\"GRAPH_NOTEBOOK_PORT\")\n\n", | |
"[GRAPH_NOTEBOOK_HOST, GRAPH_NOTEBOOK_PORT]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
os.environ does not work for me. To simplify, I'll have the user enter these values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorporating changes
Co-authored-by: Piyush Jain <piyushjain@duck.com>
Co-authored-by: Piyush Jain <piyushjain@duck.com>
Co-authored-by: Piyush Jain <piyushjain@duck.com>
Co-authored-by: Piyush Jain <piyushjain@duck.com>
@3coins , tests successful on latest version, thanks |
… of graph schema using database statistics (langchain-ai#19546) Fixes linting for PR [19244](langchain-ai#19244) --------- Co-authored-by: mhavey <mchavey@gmail.com>
Thank you for contributing to LangChain!
Optimization schema discovery in Neptune RDF Graph: "community: improve discovery of graph schema using database statistics. Update documentation accordingly"
PR message: Delete this entire checklist and replace with
Add tests and docs: If you're adding a new integration, please include
docs/docs/integrations
directory.Lint and test: Run
make format
,make lint
andmake test
from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/Additional guidelines:
If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17.