Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoApp committed Sep 5, 2024
1 parent f5be0e6 commit 89f7f43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@azure/openai": "^1.0.0-beta.10",
"@typescript-eslint/eslint-plugin": "^6.18.0",
"express-slow-down": "^2.0.1",
"mongodb-chatbot-server": "^0.3.1",
"mongodb-chatbot-server": "^0.9.1",
"nodemon": "^3.0.2",
"ts-node": "^10.9.2"
},
Expand All @@ -25,5 +25,8 @@
"eslint-plugin-jest": "^27.6.1",
"prettier": "^3.1.1",
"@types/node": "^20.10.7"
},
"overrides": {
"mongodb-rag-core": "0.4.1"
}
}
5 changes: 1 addition & 4 deletions backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
MongoClient,
makeMongoDbEmbeddedContentStore,
makeMongoDbConversationsService,
makeDataStreamer,
AppConfig,
makeOpenAiChatLlm,
SystemPrompt,
Expand Down Expand Up @@ -128,17 +127,15 @@ const setupApp = async () => {

const conversations = makeMongoDbConversationsService(
mongodb.db(MONGODB_DATABASE_NAME),
systemPrompt
);

const dataStreamer = makeDataStreamer();

const appConfig: AppConfig = {
conversationsRouterConfig: {
dataStreamer,
llm,
conversations,
generateUserPrompt,
systemPrompt,
},
maxRequestTimeoutMs: 30000,
};
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"
services:
anythink-backend-node:
build: ./backend
Expand Down

0 comments on commit 89f7f43

Please sign in to comment.