@x1pay/langchain
LangChain/LangGraph tools for AI agent x402 payments on X1
Crawler Summary
Agentic RAG pipeline over SEC 10-K filings — CrewAI multi-agent orchestration, LLaMA-3 (Ollama), FAISS + ChromaDB hybrid retrieval, RAGAS evaluation, FastAPI + Streamlit. Fully local, no API keys needed. 📊 Agentic Financial RAG System A production-grade **multi-agent Retrieval-Augmented Generation (RAG)** pipeline for querying and analyzing **SEC 10-K filings**. Built with **CrewAI**, **LLaMA-3** (via Ollama), **FAISS + ChromaDB hybrid retrieval**, and evaluated with **RAGAS**. --- 🏗️ Architecture Agent Pipeline | Agent | Role | Tools | |---|---|---| | **RetrieverAgent** | Searches 10-K knowledge base with optimize Capability contract not published. No trust telemetry is available yet. Last updated 6/1/2026.
Freshness
Last checked 6/1/2026
Best For
agentic-financial-rag is best for crewai, multi-agent workflows where OpenClaw compatibility matters.
Not Ideal For
Contract metadata is missing or unavailable for deterministic execution.
Evidence Sources Checked
editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack
Agentic RAG pipeline over SEC 10-K filings — CrewAI multi-agent orchestration, LLaMA-3 (Ollama), FAISS + ChromaDB hybrid retrieval, RAGAS evaluation, FastAPI + Streamlit. Fully local, no API keys needed. 📊 Agentic Financial RAG System A production-grade **multi-agent Retrieval-Augmented Generation (RAG)** pipeline for querying and analyzing **SEC 10-K filings**. Built with **CrewAI**, **LLaMA-3** (via Ollama), **FAISS + ChromaDB hybrid retrieval**, and evaluated with **RAGAS**. --- 🏗️ Architecture Agent Pipeline | Agent | Role | Tools | |---|---|---| | **RetrieverAgent** | Searches 10-K knowledge base with optimize
Public facts
3
Change events
0
Artifacts
0
Freshness
Jun 1, 2026
Capability contract not published. No trust telemetry is available yet. Last updated 6/1/2026.
Trust score
Unknown
Compatibility
OpenClaw
Freshness
Jun 1, 2026
Vendor
Nithin 1808
Artifacts
0
Benchmarks
0
Last release
Unpublished
Key links, install path, and a quick operational read before the deeper crawl record.
Summary
Capability contract not published. No trust telemetry is available yet. Last updated 6/1/2026.
Setup snapshot
git clone https://github.com/NithiN-1808/agentic-financial-rag.gitSetup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.
Vendor
Nithin 1808
Protocol compatibility
OpenClaw
Handshake status
UNKNOWN
Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.
Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.
Extracted files
0
Examples
6
Snippets
0
Languages
python
text
┌─────────────────────────────────────────────────────────────────┐
│ Streamlit UI (:8501) │
└─────────────────────────┬───────────────────────────────────────┘
│ HTTP
┌─────────────────────────▼───────────────────────────────────────┐
│ FastAPI (:8000) │
│ POST /query │ POST /retrieve │ GET /health │
└─────────────────────────┬───────────────────────────────────────┘
│
┌─────────────────────────▼───────────────────────────────────────┐
│ CrewAI Orchestrator │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
│ │ Retriever │→ │ Analyst │→ │ Validator │ │
│ │ Agent │ │ Agent │ │ Agent │ │
│ └──────┬───────┘ └──────┬───────┘ └──────────┬───────────┘ │
└─────────┼─────────────────┼───────────────────── ┼─────────────┘
│ │ │
┌─────────▼─────────────────▼───────────────────── ▼─────────────┐
│ RAG Layer │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Hybrid Retriever (RRF Fusion) │ │
│ │ ┌─────────────────┐ ┌─────────────────────────┐ │ │
│ │ │ FAISS (dense) │ │ ChromaDB (dense+filter) │ │ │
│ │ └─────────────────┘ └─────────────────────────┘ │ │
│ └──────────────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Embedding Model: Ollama nomic-embed-text (local) │ │
│ └──────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
┌─────────▼────────────────────────────────────────────────────┐
│ Ollama (:11434) LLaMA-3 8B bash
git clone https://github.com/Nithin/agentic-financial-rag.git cd agentic-financial-rag python -m venv venv && source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt
bash
cp .env.example .env # Edit .env if needed (defaults work out of the box with local Ollama)
bash
ollama serve # starts Ollama server ollama pull llama3:8b # ~4.7GB — the LLM ollama pull nomic-embed-text # ~270MB — embedding model
bash
# Downloads 10-K filings for top 10 S&P 500 companies (2022 & 2023) python scripts/download_sec_filings.py # Or specify your own tickers/years: python scripts/download_sec_filings.py --tickers AAPL MSFT NVDA --years 2022 2023
bash
python scripts/ingest_documents.py # Builds both FAISS and ChromaDB indexes (takes ~5-10 minutes)
Full documentation captured from public sources, including the complete README when available.
Docs source
GITHUB OPENCLEW
Editorial quality
ready
Agentic RAG pipeline over SEC 10-K filings — CrewAI multi-agent orchestration, LLaMA-3 (Ollama), FAISS + ChromaDB hybrid retrieval, RAGAS evaluation, FastAPI + Streamlit. Fully local, no API keys needed. 📊 Agentic Financial RAG System A production-grade **multi-agent Retrieval-Augmented Generation (RAG)** pipeline for querying and analyzing **SEC 10-K filings**. Built with **CrewAI**, **LLaMA-3** (via Ollama), **FAISS + ChromaDB hybrid retrieval**, and evaluated with **RAGAS**. --- 🏗️ Architecture Agent Pipeline | Agent | Role | Tools | |---|---|---| | **RetrieverAgent** | Searches 10-K knowledge base with optimize
A production-grade multi-agent Retrieval-Augmented Generation (RAG) pipeline for querying and analyzing SEC 10-K filings. Built with CrewAI, LLaMA-3 (via Ollama), FAISS + ChromaDB hybrid retrieval, and evaluated with RAGAS.
┌─────────────────────────────────────────────────────────────────┐
│ Streamlit UI (:8501) │
└─────────────────────────┬───────────────────────────────────────┘
│ HTTP
┌─────────────────────────▼───────────────────────────────────────┐
│ FastAPI (:8000) │
│ POST /query │ POST /retrieve │ GET /health │
└─────────────────────────┬───────────────────────────────────────┘
│
┌─────────────────────────▼───────────────────────────────────────┐
│ CrewAI Orchestrator │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
│ │ Retriever │→ │ Analyst │→ │ Validator │ │
│ │ Agent │ │ Agent │ │ Agent │ │
│ └──────┬───────┘ └──────┬───────┘ └──────────┬───────────┘ │
└─────────┼─────────────────┼───────────────────── ┼─────────────┘
│ │ │
┌─────────▼─────────────────▼───────────────────── ▼─────────────┐
│ RAG Layer │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Hybrid Retriever (RRF Fusion) │ │
│ │ ┌─────────────────┐ ┌─────────────────────────┐ │ │
│ │ │ FAISS (dense) │ │ ChromaDB (dense+filter) │ │ │
│ │ └─────────────────┘ └─────────────────────────┘ │ │
│ └──────────────────────────────────────────────────────────┘ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Embedding Model: Ollama nomic-embed-text (local) │ │
│ └──────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
┌─────────▼────────────────────────────────────────────────────┐
│ Ollama (:11434) LLaMA-3 8B │
└─────────────────────────────────────────────────────────────────┘
| Agent | Role | Tools |
|---|---|---|
| RetrieverAgent | Searches 10-K knowledge base with optimized queries | financial_retrieval, sec_filing_metadata |
| AnalystAgent | Synthesizes data, computes ratios & trends | financial_retrieval, financial_calculator |
| ValidatorAgent | Fact-checks all claims against source documents | fact_validation, financial_retrieval, financial_calculator |
/query, /retrieve, /batch, /health, /filings1. Clone and install
git clone https://github.com/Nithin/agentic-financial-rag.git
cd agentic-financial-rag
python -m venv venv && source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
2. Configure environment
cp .env.example .env
# Edit .env if needed (defaults work out of the box with local Ollama)
3. Start Ollama and pull models
ollama serve # starts Ollama server
ollama pull llama3:8b # ~4.7GB — the LLM
ollama pull nomic-embed-text # ~270MB — embedding model
4. Download SEC 10-K filings
# Downloads 10-K filings for top 10 S&P 500 companies (2022 & 2023)
python scripts/download_sec_filings.py
# Or specify your own tickers/years:
python scripts/download_sec_filings.py --tickers AAPL MSFT NVDA --years 2022 2023
5. Build vector indexes
python scripts/ingest_documents.py
# Builds both FAISS and ChromaDB indexes (takes ~5-10 minutes)
6. Start the API
uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload
7. Start the UI (new terminal)
streamlit run ui/app.py
Open http://localhost:8501 🎉
git clone https://github.com/Nithin/agentic-financial-rag.git
cd agentic-financial-rag
cp .env.example .env
# Build and start all services (Ollama + API + UI)
docker compose -f docker/docker-compose.yml up -d --build
# Wait for Ollama to pull models (~5 min first time)
docker compose -f docker/docker-compose.yml logs -f ollama-init
# Once models are ready, download and ingest data
docker compose -f docker/docker-compose.yml exec api \
python scripts/download_sec_filings.py
docker compose -f docker/docker-compose.yml exec api \
python scripts/ingest_documents.py
| Service | URL | |---|---| | Streamlit UI | http://localhost:8501 | | FastAPI | http://localhost:8000 | | API Docs (Swagger) | http://localhost:8000/docs | | Ollama | http://localhost:11434 |
# Via Python
from agents.financial_crew import FinancialAnalysisCrew
crew = FinancialAnalysisCrew()
result = crew.run(
"What was Apple's total revenue and gross margin in FY2023? "
"How did it compare to FY2022?",
ticker="AAPL"
)
print(result.final_answer)
# Via CLI
python agents/financial_crew.py "What are NVIDIA's main risk factors in 2023?" --ticker NVDA
# Via API
curl -X POST http://localhost:8000/query \
-H "Content-Type: application/json" \
-d '{"query": "What was Microsoft cloud revenue growth in FY2023?", "ticker": "MSFT"}'
agentic-financial-rag/
├── agents/
│ ├── crew_agents.py # Retriever, Analyst, Validator agent definitions
│ ├── crew_tasks.py # Task definitions with expected outputs
│ ├── financial_crew.py # Main orchestrator (FinancialAnalysisCrew)
│ └── tools.py # Custom CrewAI tools (retrieval, calculator, validator)
├── rag/
│ ├── embeddings.py # Ollama / sentence-transformer embedding wrapper
│ ├── retriever.py # HybridRetriever: FAISS + ChromaDB + RRF fusion
│ └── llm.py # OllamaLLM wrapper (streaming, retry, CrewAI compat)
├── api/
│ └── main.py # FastAPI app (query, retrieve, batch, health endpoints)
├── ui/
│ └── app.py # Streamlit frontend
├── scripts/
│ ├── download_sec_filings.py # Downloads 10-Ks from SEC EDGAR (no API key needed)
│ ├── ingest_documents.py # Builds FAISS + ChromaDB indexes
│ └── finetune_llama3.py # LoRA/QLoRA fine-tuning on financial QA
├── evaluation/
│ ├── run_evaluation.py # RAGAS evaluation pipeline + 50-Q benchmark
│ └── results/ # Evaluation output JSON files
├── docker/
│ ├── Dockerfile.api # API service image
│ ├── Dockerfile.ui # UI service image
│ └── docker-compose.yml # Full stack compose file
├── data/
│ ├── raw/sec_filings/ # Downloaded 10-K .txt files (gitignored)
│ └── processed/ # FAISS index + ChromaDB (gitignored)
├── models/ # Fine-tuned LoRA adapters (gitignored)
├── config.py # Centralized configuration (reads from .env)
├── requirements.txt
├── .env.example
└── README.md
Fine-tune the base LLaMA-3 model on financial Q&A for improved domain accuracy:
# QLoRA fine-tuning (recommended — works on 12GB GPU)
python scripts/finetune_llama3.py --qlora --epochs 3
# Full LoRA (requires 24GB+ VRAM)
python scripts/finetune_llama3.py --epochs 3
# Test fine-tuned model inference
python scripts/finetune_llama3.py --test \
--test-question "What was Apple's gross margin in FY2023?"
# Enable fine-tuned model in .env:
# USE_FINETUNED_MODEL=true
Fine-tuning details:
meta-llama/Meta-Llama-3-8BRun the full RAGAS evaluation benchmark:
python evaluation/run_evaluation.py # all 50 questions
python evaluation/run_evaluation.py --questions 10 # quick test
python evaluation/run_evaluation.py --strategy faiss # test single retriever
RAGAS Metrics measured:
| Metric | Description | |---|---| | Faithfulness | Are answers grounded in retrieved context? (no hallucination) | | Answer Relevancy | Does the answer address the question? | | Context Precision | Is retrieved context relevant to the question? | | Context Recall | Does retrieved context contain all needed info? |
Results saved to evaluation/results/eval_YYYYMMDD_HHMMSS.json and viewable in the Streamlit Evaluation tab.
All settings are in .env (copy from .env.example):
| Variable | Default | Description |
|---|---|---|
| OLLAMA_MODEL | llama3:8b | LLM model name |
| OLLAMA_EMBEDDING_MODEL | nomic-embed-text | Embedding model |
| RETRIEVAL_STRATEGY | hybrid | faiss / chroma / hybrid |
| TOP_K_RETRIEVAL | 5 | Documents retrieved per query |
| CHUNK_SIZE | 512 | Words per chunk |
| CHUNK_OVERLAP | 64 | Overlap between chunks |
| USE_FINETUNED_MODEL | false | Use LoRA-adapted model |
| ENABLE_OBSERVABILITY | false | Enable Langfuse tracing |
| Component | Technology | |---|---| | LLM | LLaMA-3 8B via Ollama (local) | | Agent Framework | CrewAI + LangChain | | Fine-tuning | PEFT / LoRA / QLoRA (HuggingFace) | | Vector Store 1 | FAISS (dense retrieval) | | Vector Store 2 | ChromaDB (dense + metadata filtering) | | Embeddings | nomic-embed-text (Ollama) / all-MiniLM-L6-v2 (fallback) | | Retrieval Fusion | Reciprocal Rank Fusion (RRF) | | API | FastAPI + Uvicorn | | UI | Streamlit | | Evaluation | RAGAS | | Observability | Langfuse (optional) | | Containerization | Docker + Docker Compose | | Data Source | SEC EDGAR (public, no API key) |
MIT License — see LICENSE for details.
Built by Nithin R — Applied AI/ML Engineer
Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.
Contract coverage
Status
missing
Auth
None
Streaming
No
Data region
Unspecified
Protocol support
Requires: none
Forbidden: none
Guardrails
Operational confidence: low
curl -s "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/contract"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/trust"
Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.
Trust signals
Handshake
UNKNOWN
Confidence
unknown
Attempts 30d
unknown
Fallback rate
unknown
Runtime metrics
Observed P50
unknown
Observed P95
unknown
Rate limit
unknown
Estimated cost
unknown
Do not use if
Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.
Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.
LangChain/LangGraph tools for AI agent x402 payments on X1
An implementation of a multi-agent swarm using LangGraph
LangGraph Multi-Agent Supervisor
LangChain tools for OceanBus — give your LangChain and CrewAI agents a global identity, encrypted messaging, and Yellow Pages service discovery with a single import.
Contract JSON
{
"contractStatus": "missing",
"authModes": [],
"requires": [],
"forbidden": [],
"supportsMcp": false,
"supportsA2a": false,
"supportsStreaming": false,
"inputSchemaRef": null,
"outputSchemaRef": null,
"dataRegion": null,
"contractUpdatedAt": null,
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Invocation Guide
{
"preferredApi": {
"snapshotUrl": "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/snapshot",
"contractUrl": "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/contract",
"trustUrl": "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/trust"
},
"curlExamples": [
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/snapshot\"",
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/contract\"",
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/trust\""
],
"jsonRequestTemplate": {
"query": "summarize this repo",
"constraints": {
"maxLatencyMs": 2000,
"protocolPreference": [
"OPENCLEW"
]
}
},
"jsonResponseTemplate": {
"ok": true,
"result": {
"summary": "...",
"confidence": 0.9
},
"meta": {
"source": "GITHUB_OPENCLEW",
"generatedAt": "2026-10-08T23:15:42.680Z"
}
},
"retryPolicy": {
"maxAttempts": 3,
"backoffMs": [
500,
1500,
3500
],
"retryableConditions": [
"HTTP_429",
"HTTP_503",
"NETWORK_TIMEOUT"
]
}
}Trust JSON
{
"status": "unavailable",
"handshakeStatus": "UNKNOWN",
"verificationFreshnessHours": null,
"reputationScore": null,
"p95LatencyMs": null,
"successRate30d": null,
"fallbackRate": null,
"attempts30d": null,
"trustUpdatedAt": null,
"trustConfidence": "unknown",
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Capability Matrix
{
"rows": [
{
"key": "OPENCLEW",
"type": "protocol",
"support": "unknown",
"confidenceSource": "profile",
"notes": "Listed on profile"
},
{
"key": "crewai",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
},
{
"key": "multi-agent",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
}
],
"flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"
}Facts JSON
[
{
"factKey": "vendor",
"label": "Vendor",
"value": "Nithin 1808",
"category": "vendor",
"href": "https://github.com/NithiN-1808/agentic-financial-rag",
"sourceUrl": "https://github.com/NithiN-1808/agentic-financial-rag",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-05-24T06:16:48.303Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "protocols",
"label": "Protocol compatibility",
"value": "OpenClaw",
"category": "compatibility",
"href": "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-05-24T06:16:48.303Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "handshake_status",
"label": "Handshake status",
"value": "UNKNOWN",
"category": "security",
"href": "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-nithin-1808-agentic-financial-rag/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true,
"metadata": {}
}
]Change Events JSON
[]
Sponsored
Ads related to agentic-financial-rag and adjacent AI workflows.