Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 667 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 667 Bytes

spring-ai-example

This is a working spring AI example using Pinecone.

Basic Functionality

Prerequisites

For the UI make sure you have Node installed.

For the Pinecone, OpenAI and Anthropic functionality please set

  • PINECONE_API_KEY (assuming local profile)
  • SPRING_AI_OPENAI_API_KEY
  • SPRING_AI_ANTHROPIC_API_KEY

Using Gradle

  • Create an application-personal.yml with the following information
spring:
  ai:
    vectorstore:
      pinecone:
        environment: <your environment>
        projectId: <your project id>
  • export SPRING_PROFILES_ACTIVE=local,personal
  • gradle bootRun
  • Open a browser to http://localhost:8055/