No description
| .gitignore | ||
| db.py | ||
| embeddings.py | ||
| main.py | ||
| models.py | ||
| README.md | ||
| requirements.txt | ||
| vector_store.py | ||
Install
git clone https://git.raeman.ru/RAEman/memory-api.git
cd memory-api
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip && pip install -r requirements.txt
nano .env
.env
POSTGRES_DSN=postgresql://memory_user:strong_password_here@localhost:5432/memory_db
QDRANT_URL=http://localhost:6333
QDRANT_COLLECTION=memory_vectors
EMBEDDING_API_URL=http://<IP_ПК>:1234/v1/embeddings
EMBEDDING_MODEL=text-embedding-3-large
где -<IP_ПК> — IP вашего ПК с LM Studio
порт 1234 — стандартный для LM Studio
Запуск приложения
uvicorn main:app --host 127.0.0.1 --port 8000
Проверка
curl http://127.0.0.1:8000/health
ожидаем
{"status":"ok"}