https://github.com/kazkozdev/net-reflective-reasoning-llm
LLM agent system with support for reasoning, web search, and response processing.
https://github.com/kazkozdev/net-reflective-reasoning-llm
ai llm reasoning-models web-search
Last synced: about 1 month ago
JSON representation
LLM agent system with support for reasoning, web search, and response processing.
- Host: GitHub
- URL: https://github.com/kazkozdev/net-reflective-reasoning-llm
- Owner: KazKozDev
- License: mit
- Created: 2024-11-01T22:56:06.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-28T18:17:08.000Z (about 2 months ago)
- Last Synced: 2025-04-12T10:13:15.566Z (about 1 month ago)
- Topics: ai, llm, reasoning-models, web-search
- Language: Python
- Homepage:
- Size: 18.9 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
Net Reflective Reasoning conducts reasoning using reflective prompt techniques and web search capability.
Agent-like script.
Performs multi-stage reasoning with confidence scoring and critique, real-time web search with smart query reformulation and result parsing, structured analysis pipeline: intent → search → critique → synthesis, and fully asynchronous architecture with caching and fallback strategies.
Can be useful for developers, LLM enthusiasts who need real-time explainable answers based on structured and relevant information.
### Demo

> The demo illustrates the system’s pipeline: it interprets the query "bitcoin exchange rate", reformulates it to "bitcoin price USD", performs web search, parses the retrieved content, and executes a multi-stage reasoning process to generate the final response — all achieved by applying refinement techniques to a relatively compact gemma2 9B parameter model, which does not inherently possess such capabilities on its own.
### Requirements
- Python 3.7+
- Ollama with Gemma2:9B
- Required Python packages:
- aiohttp
- requests
- beautifulsoup4
- duckduckgo_search
- scrapy### Installation
1. Clone the repository:
```bash
git clone https://github.com/kazkozdev/net-reflective-reasoning-llm.git
cd net-reflective-reasoning-llm
```2. Install dependencies:
```bash
pip install -r requirements.txt
```3. Ensure Ollama is installed and the Gemma2:9B model is available:
```bash
# Install Ollama from https://ollama.ai
ollama pull gemma2:9b
```### Reasoning Process Stages:
- Initial Thoughts
- Search Required
- Analysis
- Critique
- Refinement
- Final Answer### License
Under the MIT License.
---
If you like this project, please give it a star ⭐For questions, feedback, or support, reach out to:
[Artem KK](https://www.linkedin.com/in/kazkozdev/)