Skip to content

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.

build(Dockerfile): torch installation

Christian2f3c26f613e2
diff --git a/README.md b/README.md
index a848b80..35f1869 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
<p align="center">
- <img src="https://img.shields.io/badge/version-2.0.6--dev-blue?style=for-the-badge" alt="Version"/>
+ <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/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.sh
index bf2a42c..8396008 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-if [ ! -f "/app/.venv/bin/python" ] || ! /app/.venv/bin/python -c "import sentence_transformers" 2>/dev/null; then
+if [ ! -f "/app/.venv/bin/python" ] || ! /app/.venv/bin/python -c "import torch; import sentence_transformers" 2>/dev/null; then
echo "Installing dependencies..."
poetry config virtualenvs.in-project true
poetry lock --no-update
diff --git a/pyproject.toml b/pyproject.toml
index 5be78ea..03d8659 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "brainapi2"
-version = "2.0.6-dev"
+version = "2.0.7-dev"
description = "Version 2.x.x of the BrainAPI memory layer."
authors = [
{name = "Christian",email = "[email protected]"}