Skip to content

feat: add rag demo and smoke test#35

Merged
Hamedghz merged 1 commit into
AIONOSfrom
codex/add-local-llm-quick-start-patch
Oct 28, 2025
Merged

feat: add rag demo and smoke test#35
Hamedghz merged 1 commit into
AIONOSfrom
codex/add-local-llm-quick-start-patch

Conversation

@Hamedghz

Copy link
Copy Markdown
Owner

Summary

  • add qdrant-backed RAG helpers and routes for the control plane
  • extend onboarding API configuration fallbacks and document the chat + RAG flows
  • ship a smoke_e2e.sh script and wire it into the installer for quick validation

Testing

  • poetry run pytest

https://chatgpt.com/codex/tasks/task_e_6901088bfc7483288bc7e2472bb62e44

@Hamedghz Hamedghz merged commit 24c0fac into AIONOS Oct 28, 2025
1 check failed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 1 to +6
import { NextResponse } from "next/server";

const CONTROL_BASE = process.env.CONTROL_BASE_URL || "http://control:8000";
const CONTROL_BASE =
process.env.NEXT_PUBLIC_CONTROL_BASE ||
process.env.CONTROL_BASE_URL ||
"http://localhost:8000";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore docker-friendly default control URL

The onboarding API handlers now resolve CONTROL_BASE from NEXT_PUBLIC_CONTROL_BASE and default to http://localhost:8000. In the docker‑compose setup the console container is still populated with NEXT_PUBLIC_CONTROL_URL and no CONTROL_BASE_URL, so these routes fall back to localhost and the HTTP requests target the console container itself rather than the control service (ECONNREFUSED). Either keep http://control:8000 as the default or read the existing NEXT_PUBLIC_CONTROL_URL env var to avoid breaking compose deployments. (The same pattern appears in the status and submit routes.)

Useful? React with 👍 / 👎.

Comment thread control/app/ai_router.py
Comment on lines +13 to +16
def __init__(self) -> None:
with open(CONFIG_PATH, "r", encoding="utf-8") as stream:
self.cfg = yaml.safe_load(stream) or {}
models_cfg = self.cfg.get("models", {})

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Guard AIRouter config file access

The new AIRouter constructor immediately does with open(CONFIG_PATH, ...) and propagates FileNotFoundError. The control image does not include /app/config/aionos.config.yaml by default and docker‑compose doesn’t mount one, so any call to /ai/chat raises 500 on first run. This should mirror the onboarding routes by tolerating a missing config (e.g. defaulting to {} or lazily creating the file) so the chat demo works out of the box.

Useful? React with 👍 / 👎.

@Hamedghz Hamedghz deleted the codex/add-local-llm-quick-start-patch branch November 11, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant