Skip to content

docs: clarify namespace and sessionId usage#110

Open
alejosworkstuff wants to merge 1 commit into
upstash:masterfrom
alejosworkstuff:docs/clarify-namespace-sessionid
Open

docs: clarify namespace and sessionId usage#110
alejosworkstuff wants to merge 1 commit into
upstash:masterfrom
alejosworkstuff:docs/clarify-namespace-sessionid

Conversation

@alejosworkstuff

Copy link
Copy Markdown

Summary

  • Clarifies the common footgun from Problem with using Namespaces #84: context.add takes options.namespace, but chat needs namespace at the top level (nesting under options is ignored for retrieval).
  • Clarifies Prevent all chats to share one history. #103: omitting sessionId shares the default session (upstash-rag-chat-session) across clients.
  • Updates How-To, API, and Getting Started docs with matching snippets.

Test plan

  • Docs preview / visual check of the three MDX pages
  • Confirm snippets match ChatOptions / AddContextOptions in src/types.ts

Document that chat() takes namespace top-level (not under options),

and that omitting sessionId shares the default history across clients.

Addresses upstash#84 and upstash#103

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant