Skip to content

Commit

Permalink
feat: ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Dec 15, 2023
1 parent 5faba25 commit 5ae864d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

if(project.hasProperty('useOllama') {
implementation 'org.springframework.experimental.ai:spring-ai-ollama:0.7.1-SNAPSHOT'
implementation 'org.springframework.experimental.ai:spring-ai-ollama-spring-boot-starter:0.7.1-SNAPSHOT'
implementation 'org.springframework.experimental.ai:transformers-embedding:0.7.1-SNAPSHOT'
} else {
implementation 'org.springframework.experimental.ai:spring-ai-openai-spring-boot-starter:0.7.1-SNAPSHOT'
}
Expand Down
5 changes: 4 additions & 1 deletion runPostgresql.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh
docker pull ankane/pgvector:latest
docker run --name aidoclibchat-postgres -e POSTGRES_PASSWORD=sven1 -e POSTGRES_USER=sven1 -e POSTGRES_DB=aidoclibchat -p 5432:5432 -d ankane/pgvector
docker run --name aidoclibchat-postgres-ollama -e POSTGRES_PASSWORD=sven1 -e POSTGRES_USER=sven1 -e POSTGRES_DB=aidoclibchat -p 5432:5432 -d ankane/pgvector
# docker start aidoclibchat-postgres
# docker stop aidoclibchat-postgres
# docker stop aidoclibchat-postgres
# docker start aidoclibchat-postgres-ollama
# docker stop aidoclibchat-postgres-ollama

0 comments on commit 5ae864d

Please sign in to comment.