Vector Stores
Pinecone
Pinecone is a vector database that enables fast and accurate vector search for building AI applications. It provides the infrastructure for the long-term memory and retrieval needed to develop state-of-the-art AI systems.
Setup
- Install Langtrace’s SDK and initialize the SDK in your code.
Note: You’ll need API keys from Langtrace and Pinecone. Sign up for Langtrace and/or Pinecone if you haven’t done so already.
Python
# Install the SDK
pip install -U langtrace-python-sdk pinecone
Typescript
npm install @pinecone-database/pinecone-client
- Setup environment variables:
Shell
export LANGTRACE_API_KEY=YOUR_LANGTRACE_API_KEY
export PINECONE_API_KEY=YOUR_PINECONE_API_KEY
Usage
Generate a simple output with your deployment’s model:
You can now view your traces on the Langtrace dashboard:
Want to see more supported methods? Checkout the sample code in the Langtrace Pinecone Python Example repository.