You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Enhance chat assistant with full codebase indexing and graceful error handling
- Index entire clarifai package (not just cli/client/utils)
- Add graceful error handling for model unavailability
- Improve RAG system to handle all CLI-related questions
- Support conversation history queries
- Add rich markdown rendering for responses
- Support chat history commands (history, clear)
- Better system prompts for pipeline/model/deployment CLI support
- Add rich library dependency for formatted output
6. Answering meta-questions about our conversation
151
163
152
-
IMPORTANT RESPONSE RULES:
164
+
RESPONSE RULES:
153
165
- Keep responses CONCISE and FOCUSED (max 300 words)
154
-
- Use bullet points, tables, or short examples when helpful
166
+
- Use bullet points, tables, or code examples when helpful
155
167
- Get to the point quickly
156
-
- ONLY answer questions related to the Clarifai CLI
157
-
- For questions about general Clarifai usage (models, apps, data, workflows), respond with:
158
-
"I'm specifically designed to help with the Clarifai CLI. For general questions, please refer to the Clarifai documentation at: https://docs.clarifai.com"
159
-
- For non-CLI related questions, redirect to: https://docs.clarifai.com
160
-
- Always reference relevant CLI files when helpful
161
-
- Provide practical examples and command snippets
162
-
163
-
CLARIFAI CLI CONTEXT:
168
+
- Answer ALL CLI-related questions directly (don't redirect)
169
+
- For meta-questions about our conversation, reference the conversation history
170
+
- For general Clarifai API questions NOT related to CLI, refer to: https://docs.clarifai.com
171
+
- Always reference code when available
172
+
- Provide practical, working examples
173
+
174
+
AVAILABLE CLARIFAI CLI COMMANDS:
164
175
{rag.get_cli_context()}
165
176
166
-
CODE REFERENCES FOR THIS QUERY:
167
-
{context}"""
177
+
RELEVANT CODE SNIPPETS FOR THIS QUESTION:
178
+
{contextifcontextelse"(Searching full codebase for relevant information)"}"""
0 commit comments