Set a monthly spend alert
To receive an email notification when your organization’s spending reaches a specified limit, set a monthly spend alert:- Go to Settings > Usage in the Pinecone console.
- In the Monthly spend alert section, click Create spend alert.
- Enter the dollar amount at which you want to receive an alert.
- Click Update alert.
Monitor organization-level usage
You must be the organization owner to view usage across your Pinecone organization. Also, this feature is available only to organizations on the Standard or Enterprise plans.
Monitor token usage
Requests to the chat, context retrieval, and evaluation API endpoints return ausage parameter with prompt_tokens, completion_tokens, and total_tokens generated.
- Chat
- Context retrieval
- Response evaluation
For chat, tokens are defined as follows:
-
prompt_tokensare based on the messages sent to the assistant and the context snippets retrieved from the assistant and sent to a model. Messages sent to the assistant can include messages from the chat history in addition to the newest message.prompt_tokensappear as Assistants Input Tokens on invoices. -
completion_tokensare based on the answer from the model.completion_tokensappear as Assistants Output Tokens on invoices. -
total_tokensis the sum ofprompt_tokensandcompletion_tokens.
Example chat response