From 48e014d4265f0cb14e1ccea2ff516b11c3a3005c Mon Sep 17 00:00:00 2001 From: saminacodes Date: Thu, 27 Mar 2025 23:41:37 +0000 Subject: [PATCH] added FAQ (#6567) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR introduces new details to the `page.mdx` file, providing guidance on how to enhance the performance of the `Nebula` character and improve its responses. ### Detailed summary - Added a section on how to make `Nebula` play a certain character better, including: - Defining the role clearly. - Avoiding personality traits in responses. - Setting output expectations. - Preloading context for specific domains. - Utilizing session handling features. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- apps/portal/src/app/nebula/faqs/page.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apps/portal/src/app/nebula/faqs/page.mdx b/apps/portal/src/app/nebula/faqs/page.mdx index 0e774005d50..ab1cacb9d06 100644 --- a/apps/portal/src/app/nebula/faqs/page.mdx +++ b/apps/portal/src/app/nebula/faqs/page.mdx @@ -20,6 +20,24 @@ Nebula supports reading and writing capabilities on any EVM-compatible chain. [V Yes, you may ask Nebula questions in any spoken language. +
+1. Define the Role Clearly: Specify the character’s role and behavior in your prompt. + + Example, “You are an assistant embedded in a blockchain application, designed to provide insights and execute transactions without introducing yourself.” + +2. Avoid phrases that suggest personality traits or self-awareness: Use Contextual Instructions and add specific instructions to avoid unnecessary introductions. + + Example, “Respond directly to queries without stating your identity or greeting users.” + +3. Set Output Expectations: Guide the format of responses. + + Example, “Provide concise answers or actions based on the user’s input without additional commentary.” + +4. Preload Context: Use Nebula’s context filters to scope responses within a specific domain (e.g., blockchain data or transactions) and avoid generic replies. + +5. Session Handling: Utilize Nebula’s session handling feature to maintain relevant context throughout interactions, ensuring responses align with the established character behavior. +
+
We recommend using [context filters](/nebula/key-concepts/context-filters) to improve relevant responses. You may also modify hyperparameters such as temperature, top-p, and more using the OpenAI API. Learn more about our [OpenAI API integration](/nebula/plugins/openai).