No description
Find a file
2025-12-27 00:40:17 +00:00
.gitignore add to ignore vscode launch settings 2025-12-27 00:40:17 +00:00
db.py fix error 2025-12-26 06:06:24 +00:00
embeddings.py fix embedding error 2025-12-26 06:27:35 +00:00
main.py fix non-int of type 'float' 2025-12-27 00:30:29 +00:00
models.py Namespace / agent_id / provider_id 2025-12-27 00:25:44 +00:00
README.md Embeddings + Qdrant Search 2025-12-26 06:18:49 +00:00
requirements.txt add requests 2025-12-26 06:15:05 +00:00
vector_store.py fix search points 2025-12-27 00:27:58 +00:00

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"}