AI Example
Demonstrates AI capabilities using @venturekit-pro/ai.
Source: examples/ai/
Key Concepts Demonstrated
Section titled “Key Concepts Demonstrated”- Embeddings — generate vector embeddings with OpenAI or Bedrock
- Vector stores — store and query vectors with Pinecone, pgvector, or in-memory
- RAG pipeline — chunk documents, ingest, and retrieve relevant context
- Agents — AI agents with tool use via OpenAI function calling
- Tool definitions —
defineTool()for agent capabilities
Provider Setup
Section titled “Provider Setup”npm install openai @pinecone-database/pineconeRequires environment variables:
| Variable | Description |
|---|---|
OPENAI_API_KEY | OpenAI API key |
PINECONE_API_KEY | Pinecone API key (if using Pinecone) |
Run It
Section titled “Run It”cd examples/ainpm installvk dev