Commit Graph

60 Commits

Author SHA1 Message Date
Χγφτ Kompanion 70bd4ea064 tests: prefer stdio MCP + mcp-proxy when available; source ~/dev/main/src/env.sh if present; robust cleanup 2025-10-19 10:24:03 +02:00
Χγφτ Kompanion 6ff51da0e2 mcp: document handlers and route embed_text via libKI (OllamaProvider) with synchronous QFuture wait; ki: respect OLLAMA_BASE for tags/generate/embeddings 2025-10-19 10:23:38 +02:00
Χγφτ Kompanion 50ecdcf56b cli: surface ingest/run_ingest.py as src/cli/embed_pipeline.py to make the Python embedder visible alongside the CLI 2025-10-19 08:34:19 +02:00
Χγφτ Kompanion 924f5c7995 ki: add inline API doc for KIEmbedOptions/KIEmbeddingResult to prefer middleware-sourced documentation 2025-10-19 08:34:04 +02:00
Χγφτ Kompanion 1e15a96bbe gui: add 'Embed' button to call KIClient::embed and display resulting vector dimension 2025-10-19 08:33:52 +02:00
Χγφτ Kompanion 2ee757b64a ki: implement multi-text embeddings in OllamaProvider::embed by batching one request per text and aggregating results 2025-10-19 08:33:27 +02:00
Χγφτ Kompanion e1eb3afacc middleware: add C++ orchestrator + API docs; cli: add MCP server mode and DB navigation; tests: add orchestrator QtTest; docs: add CLI usage; db: move SQL from sql/ to db/sql; tools: remove extra python embedding stub
- Add src/middleware/orchestrator.{h,cpp} with simple journal.from_prompt task loop and Ollama-backed model provider.
- Extend src/cli/KompanionApp.cpp with:
  - MCP server mode (--mcp-serve/--mcp-address)
  - DB helpers (--db-namespaces, --db-items, --db-search, --embedding-file)
- Add tests/test_orchestrator.cpp and link Qt6::Network; keep tests passing.
- Move legacy SQL from sql/pg/001_init.sql to db/sql/pg/001_init.sql for consistency.
- Add docs/cli-and-schema-navigation.md with examples for server, tools, and schema navigation.
- Remove tools/pg_search.py (redundant embedding stub).
2025-10-19 08:32:43 +02:00
Χγφτ Kompanion 99614bbe93 Update task 2025-10-19 07:43:28 +02:00
Χγφτ Kompanion 8dcdd92055 Add middleware layer and documentation 2025-10-18 20:12:49 +02:00
Χγφτ Kompanion dadb0af954 Change API naming to KI
It is just the catchy thing to do.
2025-10-18 14:16:16 +02:00
Χγφτ Kompanion ee37ed47bb Finish the kllm integration better
Thanks to Gemini we now have a cleaner build interface
2025-10-18 14:00:09 +02:00
Χγφτ Kompanion 2ecb214510 Add full integration tests and more debug outout 2025-10-18 09:37:32 +02:00
Χγφτ Kompanion d6640abcbd Ifx path to stestscript again - remove obsolete files 2025-10-18 09:35:37 +02:00
Χγφτ Kompanion 799f060204 Tests: Make them callable from any path 2025-10-18 05:05:58 +02:00
Χγφτ Kompanion a943ca055a Refactoring move API in subdir 2025-10-17 12:50:18 +02:00
Χγφτ Kompanion b5c3dd21e0 Use new embedding size in schema 2025-10-17 02:35:59 +02:00
Χγφτ Kompanion 3ab1089c51 Adapt ingest dir to new ingest system 2025-10-17 02:30:22 +02:00
Χγφτ Kompanion 7b27493656 Add missing ingest files 2025-10-17 00:00:45 +02:00
Χγφτ Kompanion 0264262742 Adapt defaults for ingest_dir 2025-10-16 22:36:12 +02:00
Χγφτ Kompanion 4b2f9ea184 Merge branch 'work/API' to switch to KompanionAi API 2025-10-16 21:59:51 +02:00
Χγφτ Kompanion f2f7879f42 Add bearer authentication based on namespace
While there can be namespaces without a secret, commonly
the namespace should basically be the username and the
password the login secret.
2025-10-16 21:57:50 +02:00
Χγφτ Kompanion a8694850b1 Refactor: Revert auth_token removal and add namespace to ToolSchemas.json, update tests. 2025-10-16 21:51:07 +02:00
Χγφτ Kompanion bc0ae50be5 Add some debug output and simplify overyl complex code 2025-10-16 20:43:54 +02:00
Χγφτ Kompanion ca390763e6 feat: Implement initial KompanionAI SDK structure and KLLM compatibility layer 2025-10-16 19:24:09 +02:00
Χγφτ Kompanion fd289edded Outline future plans 2025-10-16 04:55:58 +02:00
Χγφτ Kompanion f71b2ef510 Implement server logic fully 2025-10-16 04:55:18 +02:00
Χγφτ Kompanion 220be1744d Update CMakeLists to follow KDE pattern 2025-10-16 01:20:30 +02:00
Χγφτ Kompanion 122df11433 memory: remove exception parsing helpers 2025-10-15 19:13:09 +02:00
Χγφτ Kompanion 8479c23234 cli: drop exceptions from KompanionApp 2025-10-15 18:44:00 +02:00
Χγφτ Kompanion a84af5d464 doc: add anything-llm compatibility plan 2025-10-15 18:43:47 +02:00
Χγφτ Kompanion db01fb0485 Add missing files 2025-10-16 03:46:06 +13:00
Χγφτ Kompanion 70848fda6e Convert to QtSql and extend 2025-10-16 03:45:27 +13:00
Χγφτ Kompanion a04506a081 Extend command line and add db init.
This also removes obsolete schema files for clarity
2025-10-15 22:35:19 +13:00
Χγφτ Kompanion e881bc4998 First prototype 2025-10-15 15:16:56 +13:00
Χγφτ Kompanion 53a1a043c7 Add Kconfig and more tools 2025-10-15 12:07:21 +13:00
Χγφτ Kompanion 779ac57f50 Add Schema files 2025-10-15 10:39:44 +13:00
Χγφτ Kompanion 122085b1f8 Added optional Postgres support:
CMake now detects libpq/pqxx, sets HAVE_PG, and links kom_dal when available
 (CMakeLists.txt:6-24, src/dal/CMakeLists.txt:9-13); PgDal gained connection management,
    prepared statements, and guarded runtime paths while preserving the
 in-memory fallback (src/dal/PgDal.cpp:1-820, src/dal/PgDal.hpp:1-153).
  - Introduced MCP resource descriptors mirroring the Ξlope memory
model—episodic events, semantic chunks, and the semantic_sync job contract—to
 guide tooling and DAL sync behavior (resources/memory/
    kom.memory.v1/episodic.json, semantic.json, jobs/semantic_sync.json).

Note: Work done by little blue
2025-10-15 10:38:33 +13:00
Χγφτ Kompanion b567b51ee2 Snapshot commit 2025-10-15 10:14:58 +13:00
Χγφτ Kompanion 5ae22ff9f8 Add testsystem 2025-10-15 01:22:29 +13:00
Χγφτ Kompanion 2210e3a260 Add PgDal Implementation 2025-10-15 01:01:26 +13:00
Χγφτ Kompanion 93400a2d21 Add PgDal Implementation 2025-10-14 21:46:46 +13:00
Χγφτ Kompanion ba9c4c0f72 Add changes made through MCP for backup 2025-10-14 13:22:44 +13:00
Χγφτ Kompanion 0f3a56d42f docker: fix host ollama port 2025-10-13 08:17:38 +13:00
Χγφτ Kompanion f276d702b2 runtime: Update runner script 2025-10-13 07:34:03 +13:00
Χγφτ Kompanion d121f2a76d db: Add pgsql schema 2025-10-13 07:32:35 +13:00
Χγφτ Kompanion 9c63b6c593 db: core pgvector schema; docs: ASPECTS (facets of Χγφτ) 2025-10-13 06:05:32 +13:00
Χγφτ Kompanion f73d702ba6 Add kom_runner implementation 2025-10-13 05:06:39 +13:00
Χγφτ Kompanion 3ae8bebb54 Readd a self contained compose dockerfile 2025-10-13 04:57:08 +13:00
esus 628e7b529e Use host tor and ollama for now
Later for publishing we can offer both variants.
2025-10-13 04:32:19 +13:00
Χγφτ Kompanion 1585c168fd chore(docker): add host-runner compose using host ollama:11435 & tor:9051 2025-10-13 04:08:44 +13:00