{"id":26658971,"url":"https://github.com/trustbit/enterprise-rag-challenge-ui","last_synced_at":"2026-02-21T14:05:05.520Z","repository":{"id":278546391,"uuid":"916539468","full_name":"trustbit/enterprise-rag-challenge-ui","owner":"trustbit","description":"Codebase for the Enterprise RAG Challenge UI and submission handling","archived":false,"fork":false,"pushed_at":"2025-03-20T16:08:46.000Z","size":2675,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T02:13:49.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trustbit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-14T09:48:15.000Z","updated_at":"2025-05-16T02:47:56.000Z","dependencies_parsed_at":"2025-07-15T13:45:11.497Z","dependency_job_id":"6640ff48-8f0c-4ea9-8323-196d69452281","html_url":"https://github.com/trustbit/enterprise-rag-challenge-ui","commit_stats":null,"previous_names":["trustbit/enterprise-rag-challenge-ui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trustbit/enterprise-rag-challenge-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustbit%2Fenterprise-rag-challenge-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustbit%2Fenterprise-rag-challenge-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustbit%2Fenterprise-rag-challenge-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustbit%2Fenterprise-rag-challenge-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trustbit","download_url":"https://codeload.github.com/trustbit/enterprise-rag-challenge-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustbit%2Fenterprise-rag-challenge-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29682749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T13:29:26.630Z","status":"ssl_error","status_checked_at":"2026-02-21T13:26:50.125Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-25T10:17:26.752Z","updated_at":"2026-02-21T14:05:05.505Z","avatar_url":"https://github.com/trustbit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enterprise RAG Challenge UI \u0026 Submission Handling\n\nCodebase for the Submission API and UI for the TIMETOACT Enterprise RAG Challenge taking place on 27th of February 2025.\n\n[Landing page](https://www.timetoact-group.at/details/enterprise-rag-challenge)\n\n[Source code](https://github.com/trustbit/enterprise-rag-challenge/)\n\n![UI_sample_image.png](UI_sample_image.png)\n\n## Before you start\nSpecify necessary variables in the [`.env`](.env) file and adapt to needs.\n\nAdapt URL in [index.html](src/index.html) to actual API domain.\n\n\n\n## Getting Started\n### Locally\nInstall dependencies (preferably in a virtual environment)\n```bash\npip install -r requirements.txt\n```\n\nRun the app\n```bash\npython -m uvicorn src.main:app --reload\n```\n\n### With Docker\nBuild docker image\n```bash\ndocker build -t rag_challenge .\n```\n\nRun docker container\n```bash\ndocker run -d -p 8000:8000 rag_challenge\n```\n\n\n## Test submission with curl\n\n### Test UI submission (string)\n\n```bash\ncurl -X 'POST' \\\n  'http://127.0.0.1:8000/submit-ui' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -d 'content=%5B%7B%22question%22%3A%22Q1%22%2C%22schema%22%3A%22name%22%2C%22answer%22%3A%22A1%22%7D%2C%7B%22question%22%3A%22Q2%22%2C%22schema%22%3A%22number%22%2C%22answer%22%3A2.5%7D%2C%7B%22question%22%3A%22Q2%22%2C%22schema%22%3A%22boolean%22%2C%22answer%22%3Atrue%7D%5D'\n```\n\n### Test json file submission\n\n```bash\ncurl -X 'POST' \\\n  'http://127.0.0.1:8000/submit' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: multipart/form-data' \\\n  -F 'file=@test/samples/sample_answer.json;type=application/json'\n```\n\n### Test submission data check and submission with python\n\nRun the file [`submit_via_API.py`](submit_via_API.py).\n\n### Run unittests\nNote, that running the tests will generate two submissions, which will \nbe stored in the specified path \n\n```bash\npytest\n```\n\n\n## Schema\n\n```json\n{\n  \"team_email\": \"test@rag-tat.com\",\n  \"submission_name\": \"test-team\",\n  \"answers\": [\n    {\n      \"question_text\": \"What was the Net Profit Margin of \\\"Oesterreichische Kontrollbank\\\" in June 30, 2023?\",\n      \"kind\": \"number\",\n      \"value\": 0.1243,\n      \"references\": [\n        {\n            \"pdf_sha1\": \"053b7cb83115789346e2a9efc7e2e640851653ff\",\n            \"page_index\": 3\n        }\n      ]\n    },\n    {\n      \"question_text\": \"What was the total liabilities of \\\"CrossFirst Bank\\\" in the fiscal year 2023?\",\n      \"kind\": \"number\",\n      \"value\": 5992487000,\n      \"references\": []\n    },\n    \n  ]\n}\n```\n\nAlso see the sample answer in the file [`sample_answer.json`](test/samples/sample_answer.json).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrustbit%2Fenterprise-rag-challenge-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrustbit%2Fenterprise-rag-challenge-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrustbit%2Fenterprise-rag-challenge-ui/lists"}