Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ node_modules/
/benchmarks/results/
benchmarks/baselines/locomo_baseline.json
data/bm25_index.db
.venv-test/
2 changes: 1 addition & 1 deletion .railway/falkordb.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ENV REDIS_ARGS="--save 900 1 --save 300 10 --save 60 10000 --appendonly yes --di
EXPOSE 6379

# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=10 \
CMD redis-cli ping || exit 1

# Volume for persistent data
Expand Down
14 changes: 14 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def _parse_viewer_allowed_origins() -> Any:
CONSOLIDATION_TASK_FIELDS,
CONSOLIDATION_TICK_SECONDS,
DEFAULT_EXPAND_RELATIONS,
DOCUMENT_MAX_BYTES,
DOCUMENT_PRESIGNED_EXPIRES,
EMBEDDING_MODEL,
ENRICHMENT_ENABLE_SUMMARIES,
ENRICHMENT_FAILURE_BACKOFF_SECONDS,
Expand Down Expand Up @@ -182,6 +184,7 @@ def _parse_viewer_allowed_origins() -> Any:
configure_recall_helpers,
)
from automem.search.runtime_relations import fetch_relations as _fetch_relations_runtime
from automem.stores.bucket_store import build_bucket_store_from_config
from automem.stores.graph_store import _build_graph_tag_predicate
from automem.stores.vector_store import _build_qdrant_tag_filter
from automem.sync.runtime_bindings import create_sync_runtime
Expand Down Expand Up @@ -224,6 +227,17 @@ def _parse_viewer_allowed_origins() -> Any:
"default_expand": DEFAULT_EXPAND_RELATIONS,
}

# Optional S3-compatible bucket store for document originals. Returns None
# unless all S3_* env vars are configured, in which case /documents endpoints
# return 503 with a clear message.
try:
bucket_store = build_bucket_store_from_config()
if bucket_store is not None:
logger.info("Bucket store initialized for document originals")
except Exception:
logger.exception("Bucket store init failed; /documents endpoints disabled")
bucket_store = None

# Search weights are imported from automem.config

# Maximum number of results returned by /recall
Expand Down
Loading
Loading