fix: remove stale knowledge_base_hybrid references, fix generic ENV_PATH
- file_ingestion.py: docstrings now reference 'configured collection' instead of hardcoded 'knowledge_base_hybrid' (code already uses COLLECTION_NAME env var, defaulting to knowledge_base) - context_enhancer.py: same docstring fix - wiki_continuous_ingest.py: ENV_PATH now points to memory-os/docker/.env instead of ai-stack/cognitive-agent/.env (production-specific path)
This commit is contained in:
parent
1225af07f0
commit
7de2265c66
|
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Tasks — File-based wiki ingestion (Phase B: continuous).
|
Tasks — File-based wiki ingestion (Phase B: continuous).
|
||||||
Receives a file path to a .md file inside the container (e.g. /wiki/concepts/new.md),
|
Receives a file path to a .md file inside the container (e.g. /wiki/concepts/new.md),
|
||||||
extracts frontmatter, generates DENSE + BM25 SPARSE embeddings, upserts into knowledge_base_hybrid.
|
extracts frontmatter, generates DENSE + BM25 SPARSE embeddings, upserts into the configured collection.
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
@ -152,7 +152,7 @@ async def ingest_file(
|
||||||
file_path: str,
|
file_path: str,
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""
|
"""
|
||||||
Ingests a .md file from the vault into knowledge_base_hybrid (dense + BM25 sparse).
|
Ingests a .md file from the vault (dense + BM25 sparse).
|
||||||
Returns a dict with id and status.
|
Returns a dict with id and status.
|
||||||
"""
|
"""
|
||||||
wiki_root = Path(WIKI_PATH).resolve()
|
wiki_root = Path(WIKI_PATH).resolve()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""
|
"""
|
||||||
Context Enhancer — HYBRID search (semantic + BM25) on knowledge_base_hybrid
|
Context Enhancer — HYBRID search (semantic + BM25) on the configured collection
|
||||||
for prompt enrichment.
|
for prompt enrichment.
|
||||||
|
|
||||||
Runs as a synchronous function (fast, <1s) before each Hermes response.
|
Runs as a synchronous function (fast, <1s) before each Hermes response.
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ from arq.connections import RedisSettings
|
||||||
import redis.asyncio as aioredis
|
import redis.asyncio as aioredis
|
||||||
|
|
||||||
# ─── Config ────────────────────────────────────────────────────────────────
|
# ─── Config ────────────────────────────────────────────────────────────────
|
||||||
ENV_PATH = Path.home() / "ai-stack" / "cognitive-agent" / ".env"
|
ENV_PATH = Path.home() / "memory-os" / "docker" / ".env"
|
||||||
if ENV_PATH.exists():
|
if ENV_PATH.exists():
|
||||||
load_dotenv(ENV_PATH)
|
load_dotenv(ENV_PATH)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue