You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/tools/moss_with_llamaindex.ipynb
+5-9Lines changed: 5 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,9 @@
5
5
"id": "3e37307f",
6
6
"metadata": {},
7
7
"source": [
8
-
"# Moss Tool Example\n",
8
+
"# Moss + LlamaIndex\n",
9
9
"\n",
10
-
"This notebook demonstrates how to use the `MossToolSpec` with LlamaIndex.\n",
11
-
"\n",
12
-
"## Installation\n",
13
-
"\n",
14
-
"First, you need to install the package (and LlamaIndex core if not present)."
10
+
"[Moss](https://moss.dev) is a search runtime for voice agents, copilots, and multimodal apps. Sub-10ms lookups, zero infrastructure. Built in Rust and WebAssembly. Moss runs search inside your agent runtime. Sub-10ms lookups, always-current data, without rebuilding your infra."
15
11
]
16
12
},
17
13
{
@@ -31,7 +27,7 @@
31
27
"source": [
32
28
"## Setup\n",
33
29
"\n",
34
-
"Import the necessary classes and initialize the Moss client."
30
+
"Import the necessary classes and initialize the Moss client with your project credentials. We'll configure query options to tune the search behavior (`top_k` for result count, `alpha` for the semantic/keyword blend)."
35
31
]
36
32
},
37
33
{
@@ -75,7 +71,7 @@
75
71
"source": [
76
72
"## Indexing Data\n",
77
73
"\n",
78
-
"Let's add some sample data to our index."
74
+
"Create sample documents with `DocumentInfo` (each with `id`, `text`, and `metadata`). Then call `index_docs()` to build the Moss index — this creates or replaces the index with your documents and makes them searchable."
79
75
]
80
76
},
81
77
{
@@ -110,7 +106,7 @@
110
106
"source": [
111
107
"## Using with an Agent\n",
112
108
"\n",
113
-
"Now we can wrap the tool for use with a LlamaIndex agent."
109
+
"Now we'll expose the Moss tool's methods (`query`, `list_indexes`, `delete_index`) to a `ReActAgent`. The agent will autonomously decide which tool to call based on the user's question and the search results it retrieves."
Copy file name to clipboardExpand all lines: llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/llama_index/graph_stores/neo4j/base.py
0 commit comments