Create initial Tanuki bot api endpoint
Compare changes
Files
2- Terri Chu authored
+ 2
− 2
@@ -115,10 +115,10 @@ def query_search_documents
Related https://gitlab.com/gitlab-org/enablement-section/tanuki-bot/-/issues/2
Creates an API endpoint that receives and responds with json:
POST /-/llm/tanuki_bot/ask
{ "q": "What is advanced search?" }
This is part of a series of MRs and should be reviewed and merged in this order
MR | status |
---|---|
Add support for the embedding database (!118156 - merged) (db setup) | merged ![]() |
Add the tanuki_bot model (!118195 - merged) (migration) | merged ![]() |
Create initial Tanuki bot api endpoint (!117695 - merged) (api) | in review ![]() |
Feature.enable(:openai_experimentation)
Feature.enable(:tanuki_bot)
::Gitlab::CurrentSettings.update!(openai_api_key: '<YOUR_KEY>')
rails db:migrate
pgvector
folderasdf install python
pip install -r requirements.txt
OPENAI_API_KEY=not-an-actual-key PG_USER=<Your user> PG_HOST=<Your gdk install directory>/postgresql python chroma_to_pg.py
POST /-/llm/tanuki_bot/ask
* you only need to do this once to have data in the embedding database.
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.