Skip to content

Fix rag lagchain with local nim #287

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 2 commits into
base: main
Choose a base branch
from

Conversation

jskswamy
Copy link

Add model configuration options in Langchain RAG local NIM notebook

This commit introduces a new section in the Jupyter notebook that
configures the model options for both chat and embeddings. The
options are defined in dictionaries to streamline the initialization
of the ChatNVIDIA and NVIDIAEmbeddings instances.

And also installs the missing pip packages

This commit introduces a new section in the Jupyter notebook that
configures the model options for both chat and embeddings. The
options are defined in dictionaries to streamline the initialization
of the `ChatNVIDIA` and `NVIDIAEmbeddings` instances.

The changes include:

- Added a markdown cell for clear documentation of model options.
- Introduced `chat_model_options` and `embeddings_model_options`
  dictionaries for better parameter management.
- Updated the instantiation of `ChatNVIDIA` and `NVIDIAEmbeddings`
  to use the new options, enhancing code readability and maintainability
  by avoiding duplicate declaration
Added the installation command for `langchain-core` and
`langchain-community` to the setup instructions in the
RAG_Langchain_with_Local_NIM notebook.

- Added `langchain-core==0.2.6` and `langchain-community`
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