Canopy is a retrieval-augmented generation framework that integrates with Pinecone cloud vector-database indexes. It reduces setup and coding compared with building a RAG framework yourself, trading some control for convenience. section 11.3.2
A basic setup requires:
- Install Python 3.11, then install the SDK with pip3 install canopy-sdk. section 11.3.2
- Provide OpenAI and Pinecone API keys, plus an index name. section 11.3.2
- Use Pinecone's standard account so Canopy can create the required vector database. section 11.3.2
export PINECONE_API_KEY="<PINECONE_API_KEY>" export OPENAI_API_KEY="<OPENAI_API_KEY>" export INDEX_NAME="<INDEX_NAME>"
Environment variables configure Pinecone, OpenAI, and the target index before running Canopy. section 11.3.2
Generating tests from an indexed user story
After indexing source data, a query such as "List different types of tests for each JSON parameter in the PUT branding endpoint" produces tests organized by parameters including name, coordinates, logo URL, description, and contact fields. Canopy also identifies the relevant source file, making the retrieved context visible for review. Human verification remains necessary because the generated tests depend on the indexed specification. section 11.3.3
