Skip to content

Fix rag lagchain with local nim#287

Open
jskswamy wants to merge 2 commits intoNVIDIA:mainfrom
jskswamy:fix-rag-lagchain-with-local-nim
Open

Fix rag lagchain with local nim#287
jskswamy wants to merge 2 commits intoNVIDIA:mainfrom
jskswamy:fix-rag-lagchain-with-local-nim

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