From d071268058c5620ff8d58999c5e5b7f8b3febf30 Mon Sep 17 00:00:00 2001 From: Ayush Chaurasia Date: Mon, 21 Apr 2025 22:51:48 +0530 Subject: [PATCH] Update docs/src/guides/mcp.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- docs/src/guides/mcp.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/docs/src/guides/mcp.md b/docs/src/guides/mcp.md index 0f0b2d26f..2cdd79e06 100644 --- a/docs/src/guides/mcp.md +++ b/docs/src/guides/mcp.md @@ -69,25 +69,6 @@ async def ingest_data(content: str) -> str: This function takes a string and limit as input and searches the LanceDB table for the most relevant memories. -```python -@mcp.tool() -async def retrieve_data(query: str, limit: int = 5) -> str: - """ - Search db using vector search - Args: - query: The search query - limit: Maximum number of results to return - """ - tbl = data[TABLE_NAME] - rs = tbl.search(query).limit(limit).to_list() - data = [ - r["text"] for r in rs - ] - if not data: - return "No relevant data found." - - return "\n\n".join(data) -``` ## Install it on Claude desktop