BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.
Python ai-agentsai-memoryknowledge-graphknowledge-managementknowledge-representationreccomendation-system
build(Dockerfile): deps
Christian9886f460f2cc
diff --git a/README.md b/README.mdindex 35f1869..6961a98 100644--- a/README.md+++ b/README.md@@ -1,5 +1,5 @@<p align="center">- <img src="https://img.shields.io/badge/version-2.0.7--dev-blue?style=for-the-badge" alt="Version"/>+ <img src="https://img.shields.io/badge/version-2.0.8--dev-blue?style=for-the-badge" alt="Version"/><img src="https://img.shields.io/badge/python-3.11+-green?style=for-the-badge&logo=python&logoColor=white" alt="Python"/><img src="https://img.shields.io/badge/license-AGPLv3%20%2B%20Commons%20Clause-purple?style=for-the-badge" alt="License"/></p>diff --git a/entrypoint.sh b/entrypoint.shindex 8396008..097ee70 100644--- a/entrypoint.sh+++ b/entrypoint.sh@@ -6,8 +6,6 @@ if [ ! -f "/app/.venv/bin/python" ] || ! /app/.venv/bin/python -c "import torch;poetry config virtualenvs.in-project truepoetry lock --no-updatepoetry install --no-root --sync- /app/.venv/bin/pip uninstall -y torch || true- /app/.venv/bin/pip install torch --index-url https://download.pytorch.org/whl/cpu --no-cache-dirfiecho "Checking for sentence-transformers model..."diff --git a/pyproject.toml b/pyproject.tomlindex 03d8659..d3feaa1 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[project]name = "brainapi2"-version = "2.0.7-dev"+version = "2.0.8-dev"description = "Version 2.x.x of the BrainAPI memory layer."authors = [{name = "Christian",email = "[email protected]"}diff --git a/src/lib/milvus/client.py b/src/lib/milvus/client.pyindex 568c8cf..6e27814 100644--- a/src/lib/milvus/client.py+++ b/src/lib/milvus/client.py@@ -20,6 +20,7 @@ if os.getenv("MILVUS_URI") and not os.getenv("MILVUS_URI").startswith(from pymilvus import MilvusClient as Milvusfrom pymilvus import connections, db+from pymilvus.milvus_client.index import IndexParamsfrom src.adapters.interfaces.embeddings import VectorStoreClientfrom src.config import config@@ -173,13 +174,14 @@ class MilvusClient(VectorStoreClient):if collection_created:try:- index_params = {- "metric_type": "COSINE",- "index_type": "AUTOINDEX",- }+ index_params = IndexParams()+ index_params.add_index(+ field_name="embeddings",+ index_type="AUTOINDEX",+ metric_type="COSINE",+ )client.create_index(collection_name=store,- field_name="embeddings",index_params=index_params,)except Exception as e: