AI Copilots
Context-Aware AI Copilots with Real-Time Search
AI copilots need to recall relevant context instantly. Moss runs semantic search directly in the browser via WebAssembly, so your copilot retrieves context without sending data to a third-party server.
100%
data stays on-device
<10ms
in-browser retrieval
0
third-party data transfers
The Bottom Line
AI copilots need to recall relevant context instantly. Moss runs semantic search directly in the browser via WebAssembly, so your copilot retrieves context without sending data to a third-party server.
The Problem
Copilots without context are just chatbots
An AI copilot that cannot recall your documentation, past conversations, or domain knowledge is just a generic chatbot with a different label. Traditional RAG pipelines require sending user queries to a cloud vector database, adding latency and creating a privacy liability. Every query leaves the user's device, hits a third-party server, and comes back. For enterprise copilots handling sensitive data, that architecture is a non-starter. You need retrieval that runs where the copilot runs.
Solution
How Moss Solves This
In-browser search via WebAssembly
Moss compiles to WebAssembly and runs directly in the browser. Your copilot retrieves context locally without any server round-trip.
Private by architecture
User queries never leave the device. No data is sent to third-party servers. Compliance-friendly for healthcare (HIPAA) and enterprise (SOC2) environments.
Hybrid search for precision
Combine semantic similarity with keyword matching. The alpha parameter lets you tune the blend for your specific domain and data.
from moss import MossClient, QueryOptions
client = MossClient(PROJECT_ID, PROJECT_KEY)
# Create an index with your documentation
await client.create_index("copilot-kb", documentation)
await client.load_index("copilot-kb")
# Hybrid search: blend semantic + keyword
results = await client.query(
"copilot-kb", user_query,
QueryOptions(top_k=5, alpha=0.7) # 70% semantic, 30% keyword
)
for doc in results.docs:
print(f"[{doc.score:.3f}] {doc.text}")FAQ