Skip to content

WIP - Updating Pinecone Notebooks in learn\generation\langchain\handbook to be More in Line with Modern LangChain Approaches #449

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Siraj-Aizlewood
Copy link

No description provided.

…pynb to Work with LangChain 0.3

Used newer models and new HuggingFaceEndpoint() class (instead of the, now deprecated, HuggingFaceHub() class.
…templates.ipynb to Work with LangChain 0.3

Used newer models and new HuggingFaceEndpoint() class (instead of the, now deprecated, HuggingFaceHub() class.
Changed the LLM from text-davinci-003 to gpt-3.5-turbo, since the former is deprecated.
Had to change the example from prompting the LLM to make jokes in response to serious questions, to a Markdown formatting task, as newer LLMs are too good at following orders and the supposedly bad responses were not actually bad.
…ipynb to Work with LangChain 0.3

Changes:
- Import `langchain-community` as it's required for `from langchain.callbacks import get_openai_callback`.
- Import `numexpr` as it's required by `LLMMathChain`.
- Updated to use LCEL, rather than importing Chain classes.
- Removed LangChain Hub part at end of Notebook as it was used for importingt the deprecated LLMathChain
…ational-memory.ipynb to Work with LangChain 0.3

Still part-way through this one.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Siraj-Aizlewood Siraj-Aizlewood changed the title Updating Pinecone Notebooks in learn\generation\langchain\handbook to be More in Line with Modern LangChain Approaches WIP - Updating Pinecone Notebooks in learn\generation\langchain\handbook to be More in Line with Modern LangChain Approaches May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant