/pinecone-openai-scala-demo

Demo project demonstrating how to use Pinecone vector database with OpenAI embeddings in Scala

Primary LanguageScalaMIT LicenseMIT

Pinecone + OpenAI Scala Client - Demo/Seed Project

version License Twitter Follow


This project is archived! It has been moved to the main Pinecone Scala Client repository as a module openai-examples


This is a ready-to-fork, example/demo project demonstrating how to use Pinecone vector database with OpenAI embeddings in Scala using Pinecone Scala Client and OpenAI Scala Client.

The demo app can be found in PineconeOpenAIDemo. The following env. variables are expected:

  • PINECONE_SCALA_CLIENT_API_KEY
  • PINECONE_SCALA_CLIENT_ENV
  • OPENAI_SCALA_CLIENT_API_KEY
  • OPENAI_SCALA_CLIENT_ORG_ID (optional)

✔️ Important: The demo uses data from Trec dataset created by Cognitive Computation Group at University of Pennsylvania, which we hereby acknowledge. Its training part is included in this project at trec-train.json (downloaded using this script).

License ⚖️

This library is available and published as open source under the terms of the MIT License.

Contributors 🙏

This project is open-source and welcomes any contribution or feedback (here).

Development of this library has been supported by - Cequence.io - The future of contracting

Created and maintained by Peter Banda.