tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.76k stars 523 forks source link

Fix: Specify embedding model when instantiating LLM in Pinecone example code #815

Closed nikhilnarayanan623 closed 2 months ago

nikhilnarayanan623 commented 2 months ago

Title: Fix: Specify embedding model when instantiating LLM in Pinecone example code

Description: This PR addresses an issue in the example code for the Pinecone vector store in the langchaingo package. The current code does not specify an embedding model when instantiating the Language Model (LLM), resulting in the API returning an unexpected status code: 400 - "you must provide a model parameter." This can lead to unexpected behavior or errors. The proposed change adds a line to specify the embedding model, ensuring the code runs correctly and aligns with best practices.

Changes:

Added a line to specify the embedding model when instantiating LLM in the Pinecone example code. Please review and merge at your earliest convenience.

Thank you!