aboutsummaryrefslogtreecommitdiff
path: root/apps/docs/memory-api/features/query-rewriting.mdx
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2025-09-13 22:09:40 -0700
committerDhravya Shah <[email protected]>2025-09-13 22:09:40 -0700
commit90fd19f2156e28845d9288ea8ffc2d7d9573b77a (patch)
treee630e3943d70b688c42a762c11c745159e1d6771 /apps/docs/memory-api/features/query-rewriting.mdx
parentMerge branch 'main' of https://github.com/supermemoryai/supermemory (diff)
downloadsupermemory-90fd19f2156e28845d9288ea8ffc2d7d9573b77a.tar.xz
supermemory-90fd19f2156e28845d9288ea8ffc2d7d9573b77a.zip
update: Readme
Diffstat (limited to 'apps/docs/memory-api/features/query-rewriting.mdx')
-rw-r--r--apps/docs/memory-api/features/query-rewriting.mdx50
1 files changed, 0 insertions, 50 deletions
diff --git a/apps/docs/memory-api/features/query-rewriting.mdx b/apps/docs/memory-api/features/query-rewriting.mdx
deleted file mode 100644
index 9508297a..00000000
--- a/apps/docs/memory-api/features/query-rewriting.mdx
+++ /dev/null
@@ -1,50 +0,0 @@
----
-title: "Query Rewriting"
-description: "Query Rewriting in supermemory"
-icon: "blend"
----
-
-Query Rewriting is a feature that allows you to rewrite queries to make them more accurate.
-
-![Query Rewriting](/images/query-rewriting.png)
-
-### Usage
-
-In supermemory, you can enable query rewriting by setting the `rewriteQuery` parameter to `true` in the search API.
-
-<CodeGroup>
-
-```bash cURL
-curl https://api.supermemory.ai/v3/search \
- --request POST \
- --header 'Authorization: Bearer SUPERMEMORY_API_KEY' \
- --header 'Content-Type: application/json' \
- -d '{
- "q": "What is the capital of France?",
- "rewriteQuery": true
- }'
-```
-
-```typescript
-await client.search.create({
- q: "What is the capital of France?",
- rewriteQuery: true,
-});
-```
-
-```python
-client.search.create(
- q="What is the capital of France?",
- rewriteQuery=True
-)
-```
-
-</CodeGroup>
-
-### Notes and limitations
-
-- supermemory generates multiple rewrites, and runs the search through all of them.
-- The results are then merged and returned to you.
-- There is no additional costs associated with query rewriting.
-- While query rewriting makes the quality much better, it also **incurs additional latency**.
-- All other features like filtering, hybrid search, recency bias, etc. work with rewritten results as well.