MCPcopy Create free account
hub / github.com/0xSero/Azul / load_sample_documents

Function load_sample_documents

scripts/simple-rag-server.py:109–132  ·  view source on GitHub ↗

Load some sample documents for testing

()

Source from the content-addressed store, hash-verified

107 pass
108
109def load_sample_documents():
110 """Load some sample documents for testing"""
111 SimpleRAGHandler.documents = [
112 {
113 'content': 'Azul is a terminal web browser written in Rust with AI-powered features including chat, RAG, and memory integration.',
114 'metadata': {'source': 'README', 'type': 'project'},
115 'score': 1.0
116 },
117 {
118 'content': 'mem-layer is a graph-based memory management system for AI models. It stores nodes and relationships in a graph database.',
119 'metadata': {'source': 'docs', 'type': 'integration'},
120 'score': 1.0
121 },
122 {
123 'content': 'The browser supports multiple search engines including DuckDuckGo, Wikipedia, arXiv, and Google Scholar.',
124 'metadata': {'source': 'features', 'type': 'documentation'},
125 'score': 1.0
126 },
127 {
128 'content': 'Press r to open RAG panel, m for memory panel, c for chat, and ? for help.',
129 'metadata': {'source': 'keybindings', 'type': 'documentation'},
130 'score': 1.0
131 },
132 ]
133
134def run_server(port=8765):
135 """Run the simple RAG server"""

Callers 1

run_serverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected