Skip to content

Commit 50e6054

Browse files
authored
Update agentic-search.md
1 parent fb17b22 commit 50e6054

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docs/llama-nexus/mcp/agentic-search.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ You will see that both the Qdrant vector collection and TiDB table are populated
175175
Install the agentic search MCP server for Linux on x86.
176176

177177
```
178-
curl -LO https://github.com/cardea-mcp/cardea-mcp-servers/releases/download/0.7.0/cardea-mcp-servers-unknown-linux-gnu-x86_64.tar.gz
178+
curl -LO https://github.com/cardea-mcp/cardea-mcp-servers/releases/download/0.8.0/cardea-mcp-servers-unknown-linux-gnu-x86_64.tar.gz
179179
180180
gunzip cardea-mcp-servers-unknown-linux-gnu-x86_64.tar.gz
181181
tar xvf cardea-mcp-servers-unknown-linux-gnu-x86_64.tar
182182
```
183183

184-
> Download for your platform: https://github.com/cardea-mcp/cardea-mcp-servers/releases/tag/0.7.0/
184+
> Download for your platform: https://github.com/cardea-mcp/cardea-mcp-servers/releases/tag/0.8.0/
185185
186186
Set the environment variables. The `TIDB_CONNECTION` is the TiDB connection URL from above, which includes the username and password. The `QDRANT_BASE_URL` is the Qdrant cluster connection URL, and it defaults to `http://localhost:6333`.
187187

@@ -193,23 +193,22 @@ export QDRANT_BASE_URL=https://bb8ab5cf-eae2-4c7c-9493-5f7a183c89b8.us-east4-0.g
193193
export QDRANT_API_KEY=xxxxxxxx
194194
```
195195

196-
Start the agentic search MCP server with database connection parameters. Make sure that you adjust the `--search-tool-desc` and `--search-tool-param-desc` to describe the search queries that can be performed for this database.
196+
Start the agentic search MCP server with database connection parameters. Make sure that you adjust the `--search-tool-prompt` to describe the search queries that can be performed for this database.
197197

198198
```
199199
nohup ./cardea-agentic-search-mcp-server \
200200
--socket-addr 127.0.0.1:9096 \
201201
--transport stream-http \
202-
--search-tool-desc "You MUST call the search() tool before you answer any factual question. Create a question from the user query and relevant context, and pass the question as a string to the tool call." \
203-
--search-tool-param-desc "The question to search for answers." \
202+
--search-tool-prompt "You MUST call the search() tool before you answer any factual question. Create a question from the user query and relevant context, and pass the question as a string to the tool call." \
204203
search \
205204
--qdrant-collection myPoints \
206205
--qdrant-payload-field "full_text" \
207206
--tidb-ssl-ca /etc/ssl/certs/ca-certificates.crt \
208207
--tidb-table-name myItems \
209-
--chat-service https://0xb2962131564bc854ece7b0f7c8c9a8345847abfb.gaia.domains \
210-
--embedding-service https://0x448f0405310a9258cd5eab5f25f15679808c5db2.gaia.domains \
208+
--chat-service https://0xb2962131564bc854ece7b0f7c8c9a8345847abfb.gaia.domains/v1 \
209+
--embedding-service https://0x448f0405310a9258cd5eab5f25f15679808c5db2.gaia.domains/v1 \
211210
--limit 5 \
212-
--score-threshold 0.8 &
211+
--score-threshold 0.5 &
213212
```
214213

215214
The MCP server is started on port `9096`.
@@ -221,13 +220,13 @@ The MCP server is started on port `9096`.
221220
The following command installs the Linux on x86 version of llama-nexus.
222221

223222
```
224-
curl -LO https://github.com/LlamaEdge/llama-nexus/releases/download/0.5.0/llama-nexus-unknown-linux-gnu-x86_64.tar.gz
223+
curl -LO https://github.com/LlamaEdge/llama-nexus/releases/download/0.6.0/llama-nexus-unknown-linux-gnu-x86_64.tar.gz
225224
226225
gunzip llama-nexus-unknown-linux-gnu-x86_64.tar.gz
227226
tar xvf llama-nexus-unknown-linux-gnu-x86_64.tar
228227
```
229228

230-
> Download for your platfrom here: https://github.com/LlamaEdge/llama-nexus/releases/tag/0.5.0/
229+
> Download for your platfrom here: https://github.com/LlamaEdge/llama-nexus/releases/tag/0.6.0/
231230
232231
### Configure llama-nexus
233232

@@ -264,7 +263,7 @@ Register an LLM chat API server for the `/chat/completions` endpoint.
264263
curl --location 'http://localhost:9095/admin/servers/register' \
265264
--header 'Content-Type: application/json' \
266265
--data '{
267-
"url": "https://0xb2962131564bc854ece7b0f7c8c9a8345847abfb.gaia.domains",
266+
"url": "https://0xb2962131564bc854ece7b0f7c8c9a8345847abfb.gaia.domains/v1",
268267
"kind": "chat"
269268
}'
270269
```
@@ -275,11 +274,13 @@ Register an embedding API server for the `/embeddings` endpoint.
275274
curl --location 'http://localhost:9095/admin/servers/register' \
276275
--header 'Content-Type: application/json' \
277276
--data '{
278-
"url": "https://0x448f0405310a9258cd5eab5f25f15679808c5db2.gaia.domains",
277+
"url": "https://0x448f0405310a9258cd5eab5f25f15679808c5db2.gaia.domains/v1",
279278
"kind": "embeddings"
280279
}'
281280
```
282281

282+
> You can add an `api-key` field in the `data` structure for API servers that require API key access.
283+
283284
## Test the inference server
284285

285286
Use the command line to request the `/chat/completions` API endpoint directly.

0 commit comments

Comments
 (0)