feat: add 'none' LLM provider for chunk-only storage mode#691
Merged
nicoloboschi merged 1 commit intomainfrom Mar 25, 2026
Merged
feat: add 'none' LLM provider for chunk-only storage mode#691nicoloboschi merged 1 commit intomainfrom
nicoloboschi merged 1 commit intomainfrom
Conversation
Adds a proper 'none' provider option so users can run Hindsight as a chunk store with semantic search but without any LLM dependency, replacing the hacky workaround of setting provider to 'mock'. When HINDSIGHT_API_LLM_PROVIDER=none: - Retain automatically uses chunks mode (no fact extraction) - Recall works normally (semantic search, BM25, graph retrieval) - Reflect returns HTTP 400 with clear error message - Consolidation/observations are disabled - Mental model refresh returns HTTP 400 - No API key required
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
noneLLM provider option for running Hindsight as a chunk store with semantic search but without any LLM dependencyHINDSIGHT_API_LLM_PROVIDER=mockfor chunks-only modenone: retain auto-uses chunks mode, recall works normally, reflect returns HTTP 400, consolidation/observations are disabledChanges
providers/none_llm.py(new):NoneLLMprovider class +LLMNotAvailableErrorexceptionconfig.py: Forcesretain_extraction_mode=chunksandenable_observations=falsewhen provider isnonellm_wrapper.py: Registersnoneas a valid provider (no API key required)memory_engine.py: Guards on reflect, consolidation, mental model refresh; forces chunks mode in per-bank confighttp.py: CatchesLLMNotAvailableError→ HTTP 400 on reflect and mental model refreshconfiguration.md: Documents thenoneprovider with usage exampletest_none_llm_provider.py(new): 12 tests covering unit, config, integration, and HTTP API behaviorTest plan
NoneLLM.call()andcall_with_tools()raiseLLMNotAvailableErrorNoneLLM.verify_connection()succeeds (no-op)LLMNotAvailableErrorat engine level{skipped: true}LLMNotAvailableError