diff options
| author | Dhravya Shah <[email protected]> | 2026-01-08 18:35:50 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-08 18:35:50 -0800 |
| commit | 11d173f2ca117573022a3568fd861515c6b99bdb (patch) | |
| tree | 0714528560fc0a07b9af1af989cace74f5afece4 /apps/docs/quickstart.mdx | |
| parent | Update apps/docs/user-profiles/examples.mdx (diff) | |
| download | supermemory-mintlify/update-profile-threshold-parameter-30842.tar.xz supermemory-mintlify/update-profile-threshold-parameter-30842.zip | |
Update apps/docs/quickstart.mdxmintlify/update-profile-threshold-parameter-30842
Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/docs/quickstart.mdx')
| -rw-r--r-- | apps/docs/quickstart.mdx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/docs/quickstart.mdx b/apps/docs/quickstart.mdx index cd09c471..04418c4c 100644 --- a/apps/docs/quickstart.mdx +++ b/apps/docs/quickstart.mdx @@ -47,7 +47,7 @@ conversation = [ ] # Get user profile + relevant memories for context -profile = client.profile(container_tag=USER_ID, threshold=0.7, q=conversation[-1]["content"]) +profile = client.profile(container_tag=USER_ID, q=conversation[-1]["content"]) context = f"""Static profile: {"\n".join(profile.profile.static)} @@ -86,7 +86,6 @@ const conversation = [ // Get user profile + relevant memories for context const profile = await client.profile({ containerTag: USER_ID, - threshold: 0.7, q: conversation.at(-1)!.content, }); @@ -118,4 +117,8 @@ That's it! Supermemory automatically: - Builds and maintains user profiles (static facts + dynamic context) - Returns relevant context for personalized LLM responses +<Tip> +**Optional:** Use the `threshold` parameter to filter search results by relevance score. For example: `client.profile(container_tag=USER_ID, threshold=0.7, q=query)` will only include results with a score above 0.7. +</Tip> + Learn more about [User Profiles](/user-profiles) and [Search](/search/overview). |