Newer
Older
gcprag / src / main / resources / application.yaml
spring:
  main:
    allow-bean-definition-overriding: true
  application:
    name: gcprag
  ai:
    openai:
      api_key: ${OPENAI_API_KEY}
      chat:
        options:
          model: gpt-4o
          temperature: 0.3
    ollama:
      base-url: http://localhost:11434
      chat:
        model: phi3:3.8b  # Lightweight model for text generation
        options:
          temperature: 0.3
          top-p: 0.9
          max-tokens: 1000
      embedding:
        model: nomic-embed-text
        # options:
          # Embedding-specific options can be added here
    vectorstore:
      pgvector:
        index-type: HNSW
        distance-type: COSINE_DISTANCE
        dimensions: 768  # nomic-embed-text embedding dimensions
        
  datasource:
    url: jdbc:postgresql://localhost:15432/gcp_docs
    username: admin
    password: password
    driver-class-name: org.postgresql.Driver
    
  jpa:
    # hibernate:
    #   ddl-auto: validate
    show-sql: true
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQLDialect
        format_sql: true
          
server:
  port: 8080
  
logging:
  level:
    org.springframework.ai: DEBUG
    org.springframework.jdbc: DEBUG
    root: INFO