Namespaces
Organizing Requests
Namespaces offer a powerful mechanism for organizing, and managing the different types of requests from your LLM-powered application. You can think of them as channels from which the request is coming. Namespaces can be easily utilized to differentiate the source that a request comes from or manage threads, etc.
Use Namespaces
Any request that is logged to GPTBoost has a Namespace. It can be either the default or a custom one specified in the header. To assign a Namespace for a request, simply add the property in the HEADERS.
The key follows the format GPTBoost-Namespace
The value is the string representation of your custom namespace.
Vizualization in GPTBoost
Use Cases
Environment Tracking with Namespaces: Effectively manage and track requests across development, staging, and production environments using Namespaces. Assign unique Namespaces to requests originating from each environment, providing clarity and facilitating seamless monitoring and debugging processes.
E.g: Use "GPTBoost-Namespace": "development", "GPTBoost-Namespace": "staging", or "GPTBoost-Namespace": "production" to seamlessly check the requests and data only for the channel you need. Moreover, you can filter by Namespce in GPTBoost Dashboard with just a click.
Multi-Channel Personalization: Imagine an e-commerce platform, that uses different Namespaces for requests originating from the website, mobile app, and social media channels. This allows the model to tailor product recommendations and responses based on the user's interaction context, providing a personalized shopping experience across various touchpoints.
E.g. In this scenario, simply try "GPTBoost-Namespace": "iOS", "GPTBoost-Namespace": "Android", or "GPTBoost-Namespace": "web" to have the info if the request is coming from your mobile or web app.
E.g. Use some user identificator, such as User22 for Namespace value.
Last updated
Was this helpful?