Skip to content

Commit

Permalink
tweak docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Jan 5, 2024
1 parent 9c1c625 commit 28e91dd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,27 @@ services:
devices:
- driver: nvidia
capabilities: [gpu]
overpass-api:
# MEMO:
# http://localhost:5000/api/interpreter?data=[out:json];rel(2220322);out;
image: wiktorn/overpass-api
ports:
- 5000:80
volumes:
- overpass-db:/db
environment:
- OVERPASS_META=no
- OVERPASS_MODE=init
- OVERPASS_PLANET_URL=http://download.geofabrik.de/europe/monaco-latest.osm.bz2
- OVERPASS_DIFF_URL=http://download.openstreetmap.fr/replication/europe/monaco/minute/
- OVERPASS_UPDATE_SLEEP=60
- OVERPASS_USE_AREAS=true
- OVERPASS_STOP_AFTER_INIT=false
- OVERPASS_MAX_TIMEOUT=30000

networks:
myapp:
name: myapp

volumes:
overpass-db:
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,16 @@ DisplayMap: リビアの国連施設の地図を表示します。`,
];

export const setupConcernPlaceExtractorDynamicPrompt = async () => {
const embeddings = new OpenAIEmbeddings();
let embeddings: OpenAIEmbeddings;
if (process.env.CLOUDFLARE_AI_GATEWAY) {
embeddings = new OpenAIEmbeddings({
configuration: {
baseURL: process.env.CLOUDFLARE_AI_GATEWAY + "/openai",
},
});
} else {
embeddings = new OpenAIEmbeddings();
}
const memoryVectorStore = new MemoryVectorStore(embeddings);
const concernPlaceExtractExampleSelector =
new SemanticSimilarityExampleSelector({
Expand Down

1 comment on commit 28e91dd

@vercel
Copy link

@vercel vercel bot commented on 28e91dd Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.