{"uid":"cap_wm1_ZXUj27XG28zhe2Pmx","slug":"agishub-memory-search-bc2e0c67","name":"AGISHub Memory Search","description":"Semantically search a memory collection (namespace) and return the most relevant stored entries. The retrieval half of RAG.","url":"https://api.agishub.com/paid/memory-search","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["namespace","query"],"properties":{"query":{"type":"string","minLength":1,"description":"Natural-language query; returns the most semantically similar stored entries."},"top_k":{"type":"integer","maximum":20,"minimum":1,"description":"How many results to return (default 5)."},"namespace":{"type":"string","minLength":1,"description":"The namespace to search within (the same key used on upsert)."}},"additionalProperties":false},"type":{"enum":["http"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BhsRwIHjohKcfUeKDCGDo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Semantically searches a named memory namespace and returns the top-K most relevant stored entries using vector similarity — the retrieval half of a RAG pipeline.","exampleAgentPrompt":"Search my 'customer-support' memory namespace for the top 5 entries most relevant to 'refund policy for digital products' and return what you find.","exampleUseCases":[{"title":"RAG context retrieval for agent responses","prompt":"Before you answer the user's question about our cancellation policy, search the 'company-docs' memory namespace for the 3 most relevant stored entries about 'subscription cancellation' so you can ground your answer in what we've stored."},{"title":"Personalized recall for a user profile namespace","prompt":"Search the 'user-prefs-alice' memory namespace for anything relevant to 'dietary restrictions' — return the top 5 matches so I can personalize her meal recommendations."},{"title":"Knowledge base lookup for a coding assistant","prompt":"Query the 'codebase-docs' namespace for the 10 entries most semantically similar to 'how authentication middleware works' so the agent can use that context when answering developer questions."}],"resultDescription":"Returns a ranked list of up to top_k stored memory entries from the specified namespace that are most semantically similar to the query, ordered by relevance. Each entry reflects what was previously upserted into that namespace.","failureModes":["Namespace does not exist — returns empty results or an error","Query string is empty — rejected due to minLength:1 constraint","top_k out of range (below 1 or above 20) — validation error","No semantically similar entries found — returns empty result set","Payment failure — x402 payment required, call rejected if payment not provided"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to retrieve contextually relevant stored knowledge from a named namespace before generating a response (classic RAG retrieval). Prefer it over keyword-based search when semantic similarity matters more than exact term matching, and when the data was previously upserted into this same provider's memory system.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:51:07.276Z","isFirstParty":false}