ai-getting-started
ai-getting-started copied to clipboard
choose vector database using env config
This PR attempts to simplify the process of using Pinecone or Supabase. Rather than requiring the user of the app to change code references, it adds a bit of logic to select the appropriate API adapter based on the presence or absence of the Pinecone API key.
With this change in place, users will be able to control which database they're using without changing any code.