Schema: public_id + version columns with UNIQUE constraint, delete_timestamp for soft-delete. Tools: store_flashcard accepts optional public_id, update_flashcard creates a new version preserving history, delete_flashcard inserts a tombstone row and removes the Qdrant point. Qdrant: point ID is public_id (only latest version indexed).
11 lines
235 B
Bash
11 lines
235 B
Bash
QDRANT_URL=localhost
|
|
QDRANT_PORT=6334
|
|
# QDRANT_API_KEY=
|
|
# QDRANT_TLS=false
|
|
OPENAI_API_KEY=sk-...
|
|
# EMBEDDING_BASE_URL=https://api.openai.com
|
|
EMBEDDING_MODEL=text-embedding-3-small
|
|
MCP_TOKEN=change-me
|
|
PORT=8080
|
|
SQLITE_PATH=flashcard.db
|