Spaces:
Runtime error
Runtime error
Commit Β·
b4f5237
1
Parent(s): 8d11700
Change UI
Browse filesFiles changed (7)
- .chainlit/config.toml+32-12
- .chainlit/old_config.tomlDeleted-130
- app.py+43-21
- chainlit.md+34-8
- public/logo.png
- public/logo_dark.pngAdded
- public/logo_light.pngAdded
10 unmodified lines11121314151613 unmodified lines30313233343515 unmodified lines5152535455565758599 unmodified lines6970717273747576777879808182838410 unmodified lines95969798991001011021031041051061071 unmodified line10911011111211311411511611711811912012112212312412512612712812913013113213310 unmodified lines# Enable third parties caching (e.g., LangChain cache)cache = false# Authorized originsallow_origins = ["*"]13 unmodified lines# Allow users to edit their own messagesedit_message = true[features.slack]# Add emoji reaction when message is received (requires reactions:write OAuth scope)reaction_on_message_received = false15 unmodified linesmax_size_mb = 500[features.audio]# Sample rate of the audiosample_rate = 24000[features.mcp.sse]enabled = true9 unmodified lines[UI]# Name of the assistant.name = "Assistant"# default_theme = "dark"# layout = "wide"# default_sidebar_state = "open"# Description of the assistant. This is used for HTML tags.# description = ""# Chain of Thought (CoT) display mode. Can be "hidden", "tool_call" or "full".cot = "full"10 unmodified lines# custom_js = "/public/test.js"# The style of alert boxes. Can be "classic" or "modern".alert_style = "classic"# Specify additional attributes for custom JS file# custom_js_attributes = "async type = \"module\""# Custom login page image, relative to public directory or external URL# login_page_image = "/public/custom-background.jpg"# Custom login page image filter (Tailwind internal filters, no dark/light variants)# login_page_image_filter = "brightness-50 grayscale"1 unmodified line# Specify a custom meta image url.custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/chainlit_banner.png"# Load assistant logo directly from URL.logo_file_url = "public/favicon.svg"# Load assistant avatar image directly from URL.default_avatar_file_url = "public/favicon.svg"# Specify a custom build directory for the frontend.# This can be used to customize the frontend code.# Be careful: If this is a relative path, it should not start with a slash.# custom_build = "./public/build"# Specify optional one or more custom links in the header.# [[UI.header_links]]# name = "Issues"# display_name = "Report Issue"# icon_url = "https://avatars.githubusercontent.com/u/128686189?s=200&v=4"# url = "https://github.com/Chainlit/chainlit/issues"[meta]generated_by = "2.6.9"10 unmodified lines111213141516171819202122232413 unmodified lines38394041424344454615 unmodified lines6263646566676869707172737475769 unmodified lines868788899091929394959697989910010110210310 unmodified lines1141151161171181191201211221231241251261 unmodified line12812913013113213313413513613713813914014114214314414514614714814915015115215310 unmodified lines# Enable third parties caching (e.g., LangChain cache)cache = false# Whether to persist user environment variables (API keys) to the database# Set to true to store user env vars in DB, false to exclude them for securitypersist_user_env = false# Whether to mask user environment variables (API keys) in the UI with password type# Set to true to show API keys as ***, false to show them as plain textmask_user_env = false# Authorized originsallow_origins = ["*"]13 unmodified lines# Allow users to edit their own messagesedit_message = true# Allow users to share threads (backend + UI). Requires an app-defined on_shared_thread_view callback.allow_thread_sharing = false[features.slack]# Add emoji reaction when message is received (requires reactions:write OAuth scope)reaction_on_message_received = false15 unmodified linesmax_size_mb = 500[features.audio]# Enable audio featuresenabled = false# Sample rate of the audiosample_rate = 24000[features.mcp]# Enable Model Context Protocol (MCP) featuresenabled = false[features.mcp.sse]enabled = true9 unmodified lines[UI]# Name of the assistant.name = "CompifAI"# default_theme = "dark"# layout = "wide"github = "https://github.com/daniel-was-taken/NeatStandards"# default_sidebar_state = "open"# Description of the assistant. This is used for HTML tags.description = "CompifAI is a chatbot designed to provide assistance with competence standards in higher education"# Chain of Thought (CoT) display mode. Can be "hidden", "tool_call" or "full".cot = "full"10 unmodified lines# custom_js = "/public/test.js"# The style of alert boxes. Can be "classic" or "modern".alert_style = "modern"# Specify additional attributes for custom JS file# custom_js_attributes = "async type = \"module\""# Custom login page image, relative to public directory or external URLlogin_page_image = "public/logo.png"# Custom login page image filter (Tailwind internal filters, no dark/light variants)# login_page_image_filter = "brightness-50 grayscale"1 unmodified line# Specify a custom meta image url.# custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/chainlit_banner.png"# Load assistant logo directly from URL.logo_file_url = "public/logo.png"# Load assistant avatar image directly from URL.default_avatar_file_url = "public/logo.png"# Specify a custom build directory for the frontend.# This can be used to customize the frontend code.# Be careful: If this is a relative path, it should not start with a slash.# custom_build = "./public/build"# Specify optional one or more custom links in the header.# [[UI.header_links]]# name = "Github"# display_name = "Github"# icon_url = "https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png"# url = "https://github.com/daniel-was-taken/NeatStandards"[meta]generated_by = "2.8.0"
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130[project]# Whether to enable telemetry (default: false). No personal data is collected.enable_telemetry = false
# List of environment variables to be provided by each user to use the app.user_env = []
# Duration (in seconds) during which the session is saved when the connection is lostsession_timeout = 3600
# Duration (in seconds) of the user session expiryuser_session_timeout = 1296000 # 15 days
# Enable third parties caching (e.g., LangChain cache)cache = false
# Authorized originsallow_origins = ["*"]
[features]# Process and display HTML in messages. This can be a security risk (see https://stackoverflow.com/questions/19603097/why-is-it-dangerous-to-render-user-generated-html-or-javascript)unsafe_allow_html = false
# Process and display mathematical expressions. This can clash with "$" characters in messages.latex = false
# Autoscroll new user messages at the top of the windowuser_message_autoscroll = true
# Automatically tag threads with the current chat profile (if a chat profile is used)auto_tag_thread = true
# Allow users to edit their own messagesedit_message = true
# Authorize users to spontaneously upload files with messages[features.spontaneous_file_upload] enabled = false # Define accepted file types using MIME types # Examples: # 1. For specific file types: # accept = ["image/jpeg", "image/png", "application/pdf"] # 2. For all files of certain type: # accept = ["image/*", "audio/*", "video/*"] # 3. For specific file extensions: # accept = { "application/octet-stream" = [".xyz", ".pdb"] } # Note: Using "*/*" is not recommended as it may cause browser warnings accept = ["*/*"] max_files = 20 max_size_mb = 500
[features.audio] # Sample rate of the audio sample_rate = 24000
[features.mcp.sse] enabled = true
[features.mcp.stdio] enabled = true # Only the executables in the allow list can be used for MCP stdio server. # Only need the base name of the executable, e.g. "npx", not "/usr/bin/npx". # Please don't comment this line for now, we need it to parse the executable name. allowed_executables = [ "npx", "uvx" ]
[UI]# Name of the assistant.name = "Assistant"
# default_theme = "dark"
# layout = "wide"
# default_sidebar_state = "open"
# Description of the assistant. This is used for HTML tags.# description = ""
# Chain of Thought (CoT) display mode. Can be "hidden", "tool_call" or "full".cot = "full"
# Specify a CSS file that can be used to customize the user interface.# The CSS file can be served from the public directory or via an external link.# custom_css = "/public/test.css"
# Specify additional attributes for a custom CSS file# custom_css_attributes = "media=\"print\""
# Specify a JavaScript file that can be used to customize the user interface.# The JavaScript file can be served from the public directory.# custom_js = "/public/test.js"
# The style of alert boxes. Can be "classic" or "modern".alert_style = "classic"
# Specify additional attributes for custom JS file# custom_js_attributes = "async type = \"module\""
# Custom login page image, relative to public directory or external URL# login_page_image = "/public/custom-background.jpg"
# Custom login page image filter (Tailwind internal filters, no dark/light variants)login_page_image_filter = "brightness-50 grayscale"login_page_image_dark_filter = "contrast-200 blur-sm"
# Specify a custom meta image url.custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/chainlit_banner.png"
# Load assistant logo directly from URL.logo_file_url = "https://avatars.githubusercontent.com/u/128686189?s=200&v=4"
# Load assistant avatar image directly from URL.default_avatar_file_url = "https://avatars.githubusercontent.com/u/128686189?s=200&v=4"
# Specify a custom build directory for the frontend.# This can be used to customize the frontend code.# Be careful: If this is a relative path, it should not start with a slash.# custom_build = "./public/build"
# Specify optional one or more custom links in the header.# [[UI.header_links]]# name = "Issues"# display_name = "Report Issue"# icon_url = "https://avatars.githubusercontent.com/u/128686189?s=200&v=4"# url = "https://github.com/Chainlit/chainlit/issues"
[meta]generated_by = "2.6.0"144 unmodified lines14514614714814915015115215315415515615715815916016116216316416516616752 unmodified lines220221222223224225226227228229230231144 unmodified lines"context": doc_objects,"history": cl.user_session.get("messages", [])}system_prompt = """You are a helpful assistant specialising in developing non-discriminatory competence standards and disability support, reasonable adjustments, and equality legislation.When answering questions, you should:1. Use the provided context documents to inform your response2. Be accurate and helpful3. If the context doesn't contain relevant information, say so clearly4. Always reply in English5. Provide clear recommendations and examples wherever applicable6. Do not make assumptions about the user's knowledge or background7. If the user asks for a specific law or regulation, provide a brief explanation and cite relevant documents if available.8. Do not overemphasize disability in your responses, but rather focus on the support and adjustments that can be made to ensure equality and inclusivity.9. If the user query explicitly asks for a disability-related topic, provide a well-informed response based on the context documents.Context documents:{context}Please provide a clear response using the above context"""# Get the current settings to check if Think mode is enabled52 unmodified linesasync def set_starters():return [cl.Starter(label="Considerations for Autistic People",message="What considerations should be made for autistic people?",),cl.Starter(label="Explain Equality Act 2010",message="Explain the Equality Act 2010 in simple terms.",),]144 unmodified lines14514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818952 unmodified lines242243244245246247248249250251252253144 unmodified lines"context": doc_objects,"history": cl.user_session.get("messages", [])}system_prompt = """You are an expert assistant for staff in UK higher education institutions. Help develop inclusive, non-discriminatory competence standards that comply with UK equality legislation (for example: the Equality Act 2010). Advise on reasonable adjustments and support to remove barriers and promote fairness for all students.Rules:1. Use ONLY the provided context documents as your source of information: {context}2. If the context does not contain relevant information, respond exactly:"I could not find relevant information about this topic in the provided documents."3. Do not guess or include information from outside the provided documents.4. Answer in clear, plain English. Define technical or legal terms when needed.5. Support factual statements with references to the context documents or legislation.6. Provide practical, actionable guidance and examples for writing competence standards.7. Emphasise removing barriers via reasonable adjustments and support; treat disability within the broader goal of equality and inclusivity.8. Do not assume the user's prior knowledge; maintain a neutral, professional, and respectful tone.Format requirements:- Structure all responses using the RESPONSE TEMPLATE provided to you (Summary β Key Guidance).- Keep the Summary to 1-3 sentences; present Key Guidance as concise bullet points; list References used.### INTERNAL CHECKLIST - DO NOT SHOW TO USER:- Used only provided context? (Yes/No)- Cited supporting document(s)? (Yes/No)- No guesses or outside information included? (Yes/No)- Output follows Summary β Key Guidance? (Yes/No)- Tone is neutral, professional, and non-discriminatory? (Yes/No)- Legal references quoted/paraphrased accurately? (Yes/No)Proceed and format your reply according to the RESPONSE TEMPLATE.\n\nResponse template:\n\n**Summary**A concise 1-3 sentence answer that directly addresses the question.**Key Guidance**- Actionable point 1 β grounded in: [Document Title / Section]- Actionable point 2 β grounded in: [Document Title / Section]- Actionable point 3 (implementation note or short example) β grounded in: [Document Title / Section]**If no relevant information is found**"I could not find relevant information about this topic in the provided documents.""""# Get the current settings to check if Think mode is enabled52 unmodified linesasync def set_starters():return [cl.Starter(label="Reviewing Existing Standards",message="How can we review existing competence standards to ensure they are inclusive?",),cl.Starter(label="When No Adjustments are Possible",message="What should we do if a competence standard cannot be adjusted for a student?",),]
1234567891011121314# Welcome to Chainlit! ππ€Hi there, Developer! π We're excited to have you on board. Chainlit is a powerful tool designed to help you prototype, debug and share applications built on top of LLMs.## Useful Links π- **Documentation:** Get started with our comprehensive [Chainlit Documentation](https://docs.chainlit.io) π- **Discord Community:** Join our friendly [Chainlit Discord](https://discord.gg/k73SQ3FyUh) to ask questions, share your projects, and connect with other developers! π¬We can't wait to see what you create with Chainlit! Happy coding! π»π## Welcome screenTo modify the welcome screen, edit the `chainlit.md` file at the root of your project. If you do not want a welcome screen, just leave this file empty.12345678910111213141516171819202122232425262728293031323334353637383940# Competence Standards Support Assistant## About the ChatbotThis AI assistant specialises in developing non-discriminatory competence standards and equality legislation in higher education. It provides guidance on creating fair assessment criteria, understanding legal compliance requirements, and implementing inclusive practices.## Documents Used / Knowledge Base- Advice note for the higher education sector from the legal case of University of Bristol vs Abrahart (EHRC)- Commonly recommended reasonable adjustments- Reasonable adjustments and competence standards- The University of Bristol v Dr Robert Abrahart High Court Appeal and its implications- Top Tips for inclusive practice- Toolkit: Making the language of assessment inclusive- Equality Act Schedule 13- Technical guidance for further and higher education- Effective communication between autistic and non-autistic people- Positives infographic- Disability legislation for academics- University reasonable adjustments document- DSC Competence Standards Guidance- Common environmental challenges and potential solutions- ECU Understanding competence standards## Current System PromptYou are an expert assistant for staff in UK higher education institutions. Help develop inclusive, non-discriminatory competence standards that comply with UK equality legislation (for example: the Equality Act 2010). Advise on reasonable adjustments and support to remove barriers and promote fairness for all students.Rules:1. Use ONLY the provided context documents as your source of information: {context}2. If the context does not contain relevant information, respond exactly:"I could not find relevant information about this topic in the provided documents."3. Do not guess or include information from outside the provided documents.4. Answer in clear, plain English. Define technical or legal terms when needed.5. Support factual statements with references to the context documents or legislation.6. Provide practical, actionable guidance and examples for writing competence standards.7. Emphasise removing barriers via reasonable adjustments and support; treat disability within the broader goal of equality and inclusivity.8. Do not assume the user's prior knowledge; maintain a neutral, professional, and respectful tone.
.chainlit/config.toml+32-12
.chainlit/old_config.tomlDeleted-130
app.py+43-21
chainlit.md+34-8
public/logo.png


public/logo_dark.pngAdded

public/logo_light.pngAdded
