[x] Make max number messages & tokens in single RAG in conversation configurable
[x] Make the creation of reference links from the data returned from the EmbeddedContentStore configurable.
Notes
Next steps:
As a next step as part of the OSS-ification, we really should split our implementation and the stuff specific to our implementation in a separate npm package. We need this b/c we need to version our implementation of chatbot for publishing to prod, and need to version the package.
Also, there's some MongoDB-specific stuff in the package that doesn't need to be, like our preprocessor.
Improve library package publishing workflow as part of this
Jira: https://jira.mongodb.org/browse/DOCSP-33726
Changes
Make the following changes to the
chat-server
andchat-core
code to make the server more usable by other teams in their projects:chat-core/src/OpenAiEmbedFunc.ts
to use@azure/openai
SDKmakePageStore
andmakeEmbeddedContentStore
constructor functions out ofmakeDatabaseConnection
.MongoDbInterface
abstractionEmbeddedContentStore
configurable.Notes
Next steps: