Skip to content

Dev#210

Merged
pfahlr merged 12 commits into
mainfrom
dev
Sep 24, 2025
Merged

Dev#210
pfahlr merged 12 commits into
mainfrom
dev

Conversation

@pfahlr

@pfahlr pfahlr commented Sep 24, 2025

Copy link
Copy Markdown
Owner

No description provided.

…ure-branch

Add verification harness for neuroplasticity gold corpus
…with-fixes

Add index directory support to multi-agent RAG tooling
…tion-check

Fix GPU dependency detection in CI
…nd-improve-cli

Fix multi-agent invocation in verification harness
fix(lc_ask): require key-derived faiss selection
* Dev (#206)

* Fix verification harness index build commands

* Add index directory support to multi-agent RAG tooling

* Fix GPU dependency detection in CI

* Fix multi-agent invocation in verification harness

* fix(lc_ask): require key-derived faiss selection

* Dev (#207)

* Fix verification harness index build commands

* Add index directory support to multi-agent RAG tooling

* Fix GPU dependency detection in CI

* Fix multi-agent invocation in verification harness

* fix(lc_ask): require key-derived faiss selection
@pfahlr pfahlr merged commit 4b48f57 into main Sep 24, 2025
0 of 3 checks passed

@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 suggestions.

Reply with @codex fix comments to fix any unresolved comments.

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, or 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 fix this CI failure" or "@codex address that feedback".

Comment thread src/langchain/lc_ask.py
Comment on lines 348 to 360
# Prefer a repacked/merged index if available

faiss_dir: Path | None = None
expected_chunks: Path | None = None

for cand in (repacked_dir, base_dir):
if (cand / "index.faiss").exists():
faiss_dir = cand
break

if args.index_path:
if args.index_path:
faiss_dir = Path(args.index_path).expanduser()
if not faiss_dir.exists():
raise SystemExit(f"[lc_ask] FAISS dir not found: {faiss_dir}")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P0] Fix indentation in FAISS path resolution

The recent edits around _prepare_index_locations left the if args.index_path block with a smaller indent than the surrounding code. Importing src/langchain/lc_ask.py now raises IndentationError: unindent does not match any outer indentation level (line 357), which prevents the CLI from running at all.

Useful? React with 👍 / 👎.

Comment on lines +54 to 57
assert command[:2] == [sys.executable, str(builder)]

assert command[0] == sys.executable
assert command[1:3] == ["-m", "src.langchain.lc_build_index"]

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] Impossible assertion in builder command test

test_build_builder_command_targets_pdf_and_chunks asserts both command[:2] == [sys.executable, str(builder)] and command[1:3] == ["-m", "src.langchain.lc_build_index"]. These conditions cannot be simultaneously true because command[1] cannot be both str(builder) and "-m". As written the new test will always fail, regardless of the command produced by build_builder_command.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant