{"id":31702194,"url":"https://github.com/digdir/digdir-ai-assistants","last_synced_at":"2025-10-08T21:35:26.789Z","repository":{"id":224420541,"uuid":"757466193","full_name":"digdir/digdir-ai-assistants","owner":"digdir","description":"Generative AI assistants","archived":false,"fork":false,"pushed_at":"2025-10-06T06:46:01.000Z","size":39827,"stargazers_count":2,"open_issues_count":32,"forks_count":0,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-10-06T08:45:02.849Z","etag":null,"topics":["generative-ai"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digdir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-14T14:55:15.000Z","updated_at":"2025-10-06T05:35:34.000Z","dependencies_parsed_at":"2024-05-18T14:35:45.646Z","dependency_job_id":"328a796c-7bef-4c68-96bd-7d09d64ae73d","html_url":"https://github.com/digdir/digdir-ai-assistants","commit_stats":null,"previous_names":["altinn/digdir-assistants","digdir/digdir-ai-assistants"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digdir/digdir-ai-assistants","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-ai-assistants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-ai-assistants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-ai-assistants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-ai-assistants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digdir","download_url":"https://codeload.github.com/digdir/digdir-ai-assistants/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digdir%2Fdigdir-ai-assistants/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000708,"owners_count":26082838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["generative-ai"],"created_at":"2025-10-08T21:35:24.702Z","updated_at":"2025-10-08T21:35:26.784Z","avatar_url":"https://github.com/digdir.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# digdir-assistants\n\nA mono-repo for generative AI assistants, based on RAG architecture. \n\nCurrently deployed as a Slack application, we also plan to integrate with web applications, in particular Altinn Studio.\n\n# Agent flow \n\nThis diagram shows the main functional blocks and how data flows between them:\n\n![Agent Flow](/documentation/agent-flow.jpg)\n\n\n## See it in action\n\n[#altinn-assistant](https://altinndevops.slack.com/archives/C06JQLHSZME/p1707478070231209)  on Altinn Devops Slack\n\n## Local development quickstart\n\n\n1. Install dependencies:  \n\n`$ yarn install`\n\n2. Build all packages and apps\n\n`$ yarn build`\n\n\n3. Run slack-app and admin ui\n\n`$ yarn run:slack-app`\n\nNote: in order for your local bot endpoint to receive traffic from Slack, you need to configure a proxy service such as `ngrok`, and configure a Slack app to use the URL allocated by ngrok.\n\n4. Configure a new Slack app in your test workspace\n\n\u003e It is recommended to create a few Slack workspace specifically for development and testing of Slack apps\n\n![Your Slack apps](/documentation/slack/your-apps.jpg)\n\n## Deploy to Azure Container app\n\n\n1. Create a resouce group\n2. Create a Container App Environment\n3. Create a container repository\n4. Create a Container App\n\u003e For step by step instructions see: [Create a Container App](/documentation/create-a-container-app.md)\n   \n\n## Manual job execution\n\n1. Update crawler index\n\n\n2. Update search phrase index\n\n`$ cd  cli`\n`$ yarn run:generateSearchPhrases \u003ctypesense collection name\u003e`\n\nExample collection name: TEST_altinn-studio-docs-search-phrases`\n\n\n\n\n# System architecture\n\nThe Altinn Assistants architecture consists of the following technology components:\n\n1. Front-end (Slack app, Admin web app)\n2. Database-as-a-service (Supabase)\n3. Serverless function runtime (Supabase Functions)\n4. GPU-accelerated (Python app running in a GPU-enabled VM)\n5. Text search index (Typesense Cloud)\n\nSequence diagram showing execution of a typical end user query:\n\n```mermaid\nsequenceDiagram\n  participant slack.com\n  participant slack-app\n  participant llm-api\n  participant supabase-db\n  participant supabase-functions\n  participant semantic-search\n  participant gpu-services\n  slack.com-\u003e\u003eslack-app: new text message\n  slack-app-\u003e\u003esupabase-db: GET /config (cached)\n  supabase-db-\u003e\u003eslack-app: workspace + channel config\n  slack-app-\u003e\u003ellm-api: stage 1: analyze user query, translate if necessary\n  llm-api-\u003e\u003eslack-app: query analysis, translation\n  slack-app-\u003e\u003ellm-api: stage 2: query relaxation\n  llm-api-\u003e\u003eslack-app: generated search phrases\n  slack-app-\u003e\u003esemantic-search: hybrid search (cosine similarity + keyword)\n  semantic-search-\u003e\u003eslack-app: sorted doc list\n  slack-app-\u003e\u003egpu-services: POST /colbert/rerank w/user query\n  gpu-services-\u003e\u003eslack-app: Re-ranked doc list\n  slack-app-\u003e\u003ellm-api: Prompt + retrieved context\n  llm-api-\u003e\u003eslack-app: Helpful response (streamed)\n  slack-app-\u003e\u003eslack.com: Helpful response (streamed response)\n  slack-app-\u003e\u003eslack.com: Finalized response w/metadata\n  slack-app-\u003e\u003esupabase-functions: Log query, response and metadata\n  supabase-functions-\u003e\u003esupabase-db: upsert team, channel, \u003cbr\u003euser and message data\n  slack-app-\u003e\u003ellm-api: Translate to user's language\n  llm-api-\u003e\u003eslack-app: (streamed response)\n  slack-app-\u003e\u003eslack.com: (streamed response)\n  slack-app-\u003e\u003eslack.com: Finalized response w/metadata\n  slack-app-\u003e\u003esupabase-db: Log query, response and metadata\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigdir%2Fdigdir-ai-assistants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigdir%2Fdigdir-ai-assistants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigdir%2Fdigdir-ai-assistants/lists"}