examples/pinecone-vectorstore-example/README.md
Welcome to this exciting example of using Pinecone as a vector store with LangChain in Go! 🚀
This example demonstrates how to use Pinecone, a powerful vector database, in conjunction with LangChain to create and query a vector store. Here's a breakdown of the main features:
Setting up OpenAI Embeddings: The example uses OpenAI's embedding model to convert text into vector representations.
Creating a Pinecone Vector Store: It shows how to initialize a Pinecone vector store with custom configurations.
Adding Documents: The code adds several documents (cities) to the vector store, each with its own metadata (population and area).
Performing Similarity Searches: The example showcases different types of similarity searches:
github.com/tmc/langchaingo library for LangChain functionality in Go.To run this example, make sure you have:
OPENAI_API_KEY)."YOUR_API_KEY" with your actual Pinecone API key.This example is a great starting point for anyone looking to implement vector search capabilities in their Go applications using Pinecone and LangChain! 🎉
Happy coding! 💻🌟