docs(env): document the embeddings endpoint for Find related + semantic search (LC-687) #653
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/LC-687-embeddings-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause
Find related errored with a toast and no panel because the deployment had no embeddings endpoint configured. Embeddings are a separate service from the chat LLM:
EmbeddingsConfig::from_envneedsLETS_CHAT_EMBEDDINGS_URL(independent ofLETS_CHAT_LLM_URL). The dev deployment set only the LLM, soembedding_clientwasNoneandGET /messages/{id}/relatedreturned 400 "related search is not configured". Pre-LC-686 the menu item showed anyway (the CSS gate bug), so it was clickable → error toast. The assistant/askRAG does not use embeddings, so it working was a red herring.This PR
The visible symptom is already fixed by LC-686 (hides the Find related item when
[data-lc-embeddings]is absent). What was missing was any documentation of how to actually enable embeddings - the example env files documented the LLM but never the embeddings endpoint.Adds a commented embeddings block to
.env.standaloneand.env.saasnext to the LLM block: pointLETS_CHAT_EMBEDDINGS_URLat an OpenAI-compatible/v1/embeddingsendpoint, pull an embedding model (ollama pull nomic-embed-text), setLETS_CHAT_EMBEDDINGS_MODEL. Notes the default-off behavior and the LC-679 flag/role gate.The dev deployment's own compose (
internal/compose.dev-web.yml, gitignored) is updated separately to actually enable this for the dev instance.To make Find related work on the dev box
ollama pull nomic-embed-texton the Ollama host.LETS_CHAT_EMBEDDINGS_URL+_MODEL).🤖 Generated with Claude Code
https://claude.ai/code/session_01PBAyCesyqJkZ5JgixXf9Lf