Skip to content

Conversation

@GFJHogue
Copy link
Collaborator

@GFJHogue GFJHogue commented Jan 20, 2026

This PR replaces #99 & #100 and partially replaces #97

The BaseGraphBuilder.preprocess() step (available for all chat profiles) now includes safety check and language detection tasks.

  • The safety check adds a safety string field to BaseState, which is expected to be equal to "true" when the user's input is considered to be appropriate and within Reactome scope, as well as an additional reason_unsafe string field.

    • The React-to-Me profile now implements conditional routing; only researching and answering "safe" questions, while "unsafe" questions bypass the usual workflow to generate a contextual refusal response.
  • The language detection adds a self-explanatory detected_language string field to BaseState.

heliamoh and others added 17 commits September 27, 2025 17:51
- Implement parallel execution of safety and scope check, query expansion, and language detection
… expansion and conversation history management
- Replace SelfQueryRetriever with efficient hybrid search (BM25 + vector)
- Add RRF (Reciprocal Rank Fusion) support for query expansion
- Implement parallel processing for improved performance
… expansion and conversation history management
- Add type annotation for rrf_scores in retrieval_utils.py
- Fix metadata dictionary comprehension in csv_chroma.py
- Update retriever type annotations to use Any
- Add isinstance check for BM25Retriever
- Remove default values from TypedDict in base.py
- Fix TypedDict expansion in postprocess method
- Implement parallel execution of safety and scope check, query expansion, and language detection
- Implement parallel execution of safety and scope check, query expansion, and language detection
- Replace SelfQueryRetriever with efficient hybrid search (BM25 + vector)
- Add RRF (Reciprocal Rank Fusion) support for query expansion
- Implement parallel processing for improved performance
@GFJHogue GFJHogue mentioned this pull request Jan 20, 2026
@GFJHogue GFJHogue self-assigned this Jan 20, 2026
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.

3 participants