Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMMENTS - Empty PR #1256

Open
wants to merge 3,775 commits into
base: empty-branch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3775 commits
Select commit Hold shift + click to select a range
b7ec478
make explicit None is allowed
saisakul Oct 24, 2024
c6be647
chore/added migrations and test (#1129)
gecBurton Oct 24, 2024
bfc98f2
Removed debugging exception handling
jamesrichards4 Oct 24, 2024
7e79a15
Addressing review comments
jamesrichards4 Oct 24, 2024
5ba62bc
tighten codes
Oct 24, 2024
2802ad7
Merge pull request #1118 from i-dot-ai/feature/citation_prompt
jamesrichards4 Oct 24, 2024
f87cc03
update max_size to half
Oct 24, 2024
e502b2b
Merge pull request #1126 from i-dot-ai/fix_bugs/metadata_loader
saisakul Oct 24, 2024
efbd5c8
Merge pull request #1128 from i-dot-ai/feature/streaming-with-citations
jamesrichards4 Oct 24, 2024
0dd1f4d
bugfix/disabled gadget tests whilst we are actively working on them (…
gecBurton Oct 25, 2024
7a69b5a
Add text_in_answer to Citation django model
KevinEtchells Oct 25, 2024
1c767e9
Bump the pip group across 3 directories with 1 update (#1133)
dependabot[bot] Oct 28, 2024
74bfb25
always init before executing terraform
RyanWhite25 Oct 28, 2024
58507f5
handle missing backend config
RyanWhite25 Oct 28, 2024
dc352eb
Update settings.py (#1131)
gecBurton Oct 28, 2024
95d3516
Fixed passing citations through in agentic search. Added debuggable r…
jamesrichards4 Oct 29, 2024
cec9768
Ruff
jamesrichards4 Oct 29, 2024
2fca752
Handling non compliant format in StreamingJsonOutputParser
jamesrichards4 Oct 29, 2024
89e704f
Feature/rationalise file name (#1127)
gecBurton Oct 29, 2024
584394a
Merge branch 'main' into bugfix/restore-citation-passing
jamesrichards4 Oct 29, 2024
d945578
Merge pull request #1135 from i-dot-ai/bugfix/restore-citation-passing
jamesrichards4 Oct 29, 2024
c157398
bugfix/restored doc name (#1136)
gecBurton Oct 29, 2024
036bae8
Using filename passed from django app as uri in elastic model (#1139)
jamesrichards4 Oct 29, 2024
6391639
renamed original_file_name -> file_name (#1137)
gecBurton Oct 29, 2024
ebb45e4
Feature/add govuk search (#1117)
MarkDunne Oct 29, 2024
917710b
Storing text in answer in django model citations for use in footnotes…
jamesrichards4 Oct 29, 2024
59e97eb
Calculating tokens from raw LLM response even when using custom outpu…
jamesrichards4 Oct 30, 2024
2085d03
Ruff
jamesrichards4 Oct 30, 2024
7d2b4aa
Merge pull request #1140 from i-dot-ai/feature/token-counting-in-gadget
jamesrichards4 Oct 30, 2024
825ce1b
feature/unique-citation uris (#1141)
gecBurton Oct 30, 2024
6f602da
simplified urls (#1142)
gecBurton Oct 30, 2024
3f8b302
Add waitlist link to homepage (when auto sign-ups are off) (#1143)
KevinEtchells Oct 30, 2024
a0d38e6
added display name to url
gecBurton Oct 30, 2024
3126d7c
Merge pull request #1145 from i-dot-ai/bugfix/display-name-for-urls
jamesrichards4 Oct 30, 2024
1ebea09
rename for clarity & remove additional init args
RyanWhite25 Oct 30, 2024
3382f51
Merge pull request #1134 from i-dot-ai/EN-566/tf_init
RyanWhite25 Oct 30, 2024
ef1bb3e
Prevent duplicate sources when streaming
KevinEtchells Oct 31, 2024
49ccda8
Chore/tidy models (#1144)
gecBurton Oct 31, 2024
650553c
intermediate commit
jamesrichards4 Oct 31, 2024
a4190ad
feature/simplify metadata generation (#1147)
gecBurton Oct 31, 2024
ff9c15c
Show footnotes for streamed responses
KevinEtchells Oct 31, 2024
fb8e94d
Log events added for initial request, running tools and response and …
jamesrichards4 Oct 31, 2024
771804d
Setup footnotes for SSR
KevinEtchells Oct 31, 2024
297a995
Refining tool result activity log messages to unique document references
jamesrichards4 Oct 31, 2024
cca1459
Fix streaming footnotes
KevinEtchells Oct 31, 2024
b13ff82
Correcting tests and refining tool node to be a runnable to allow eve…
jamesrichards4 Oct 31, 2024
bcb047f
Bugfix/metadata description length (#1150)
gecBurton Oct 31, 2024
7140d28
Ruff
jamesrichards4 Oct 31, 2024
f8228f6
fix broken filenames (#1153)
gecBurton Oct 31, 2024
fc9f3cd
Tidy-up footnotes changes
KevinEtchells Oct 31, 2024
e843902
Fix Django tests
KevinEtchells Oct 31, 2024
040eb25
Merge branch 'main' into feature/activity-log-for-gadget
jamesrichards4 Nov 1, 2024
e4c240b
Added migration for new retrieval prompt
jamesrichards4 Nov 1, 2024
2b3901a
Merge pull request #1151 from i-dot-ai/feature/activity-log-for-gadget
jamesrichards4 Nov 1, 2024
d560035
Added notebook
jamesrichards4 Nov 1, 2024
672d162
Added a note on where to get user uuid
jamesrichards4 Nov 1, 2024
e67c853
Merge pull request #1155 from i-dot-ai/chore/agent-experiments-notebook
jamesrichards4 Nov 1, 2024
63773a8
bugfix/trimmed metadata (#1156)
gecBurton Nov 1, 2024
339432f
remived unused fields (#1159)
gecBurton Nov 1, 2024
20398ae
bugfix/corrected citation str (#1158)
gecBurton Nov 4, 2024
b61d87b
Removed hosts from .env.example; updated dev docs to latest setup
jamesrichards4 Nov 4, 2024
5d776b9
Merge branch 'main' into feature/footnotes
jamesrichards4 Nov 4, 2024
5b4e6e2
Updated migrations to be in line with main
jamesrichards4 Nov 4, 2024
a2c99ec
Merge pull request #1161 from i-dot-ai/chore/update-vscode-setup-docs
jamesrichards4 Nov 4, 2024
e260059
Merge pull request #1149 from i-dot-ai/feature/footnotes
jamesrichards4 Nov 4, 2024
512f8b4
update prompt to enforce on creator type
Nov 4, 2024
a23d2ba
reformat
Nov 4, 2024
2d2a997
add migration update retrival prompt
Nov 4, 2024
333e45f
Merge pull request #1162 from i-dot-ai/bugfix/creator_type
saisakul Nov 4, 2024
b39e521
Activities are collecting across messages, reset activities to empty …
jamesrichards4 Nov 4, 2024
c218c23
Merge pull request #1163 from i-dot-ai/bugfix/activities-not-per-message
jamesrichards4 Nov 4, 2024
68535ac
add description to structuredoutput
Nov 5, 2024
271364a
update description in text_in_answer
Nov 5, 2024
de3461f
Bugfix/activity event message size (#1165)
saisakul Nov 5, 2024
f37f009
Merge branch 'main' into bugfix/inline_citation_inconsistencies
Nov 5, 2024
678fdaa
reformat
Nov 5, 2024
73c4fad
migration
Nov 5, 2024
2979896
Merge pull request #1167 from i-dot-ai/bugfix/inline_citation_inconsi…
saisakul Nov 6, 2024
ca98d7e
Add styles for activity log items
KevinEtchells Nov 4, 2024
d511b7d
Show SSR activities
KevinEtchells Nov 6, 2024
63d0038
Show activities when streaming
KevinEtchells Nov 6, 2024
a4e38e2
Add activities to user message
KevinEtchells Nov 6, 2024
8949118
Tidy-up user-activities
KevinEtchells Nov 6, 2024
0ad75b9
Temporary commit
jamesrichards4 Nov 6, 2024
2376017
update default for metadata name
Nov 6, 2024
1d0162a
change metadata query to not return JSON
Nov 6, 2024
08e04b3
Merge pull request #1172 from i-dot-ai/bugfix/search_tool_log_metadata
jamesrichards4 Nov 7, 2024
fa650ba
In progress commit
jamesrichards4 Nov 7, 2024
cf3edb3
Merge branch 'main' into feature/composable-prompts
jamesrichards4 Nov 7, 2024
2fd0dac
feature/elastic-logs (#1109)
gecBurton Nov 7, 2024
3369ecf
Fixed passing in format instructions to chat prompt. Fixed metadata p…
jamesrichards4 Nov 7, 2024
55c9629
feature/use functions not operators (#1171)
gecBurton Nov 7, 2024
becd886
Merge branch 'main' into feature/composable-prompts
jamesrichards4 Nov 7, 2024
a8847c8
Added prompt migration
jamesrichards4 Nov 7, 2024
0d5c603
Fixed tests and added missing migration for retrieval prompt
jamesrichards4 Nov 7, 2024
6d6fd34
Ruff
jamesrichards4 Nov 7, 2024
ea915da
Merging migrations
jamesrichards4 Nov 7, 2024
9f50943
Update redbox-core/redbox/chains/runnables.py
jamesrichards4 Nov 7, 2024
4109cd2
Restoring migrations from main
jamesrichards4 Nov 7, 2024
24b4e35
Merge branch 'feature/composable-prompts' of github.com:i-dot-ai/redb…
jamesrichards4 Nov 7, 2024
398205b
Ruff
jamesrichards4 Nov 7, 2024
677777c
Merge pull request #1174 from i-dot-ai/feature/composable-prompts
jamesrichards4 Nov 7, 2024
7e89c78
Added a single log line for each request so we can debug issues in de…
jamesrichards4 Nov 8, 2024
3406850
Not logging ai_settings to improve readability
jamesrichards4 Nov 11, 2024
a7ff835
Ruff
jamesrichards4 Nov 11, 2024
d23e87f
Added graph visualisation vscode task and storage of images
jamesrichards4 Nov 11, 2024
5027337
Ruff
jamesrichards4 Nov 11, 2024
6e1b86a
Log doc name if only one doc selected
KevinEtchells Nov 11, 2024
fca7d7b
Merge pull request #1177 from i-dot-ai/feature/graph-visualisation-im…
jamesrichards4 Nov 11, 2024
9e5726c
Merge branch 'main' into feature/request-log-from-app
jamesrichards4 Nov 11, 2024
ef8590c
Merge pull request #1176 from i-dot-ai/feature/request-log-from-app
jamesrichards4 Nov 11, 2024
0e776ec
Dropped additional LLM call to get answer in search/agentic. Updated …
jamesrichards4 Nov 11, 2024
0746270
Updating agentic search tests
jamesrichards4 Nov 11, 2024
62c0c5a
Reverting package changes
jamesrichards4 Nov 11, 2024
1e29c3d
Fixed bug in gadget using output parser and tagged LLM
jamesrichards4 Nov 11, 2024
32c0699
Ruff
jamesrichards4 Nov 11, 2024
2cf2c0c
Merge pull request #1179 from i-dot-ai/feature/simplify-gadget
jamesrichards4 Nov 11, 2024
3d8812e
feature/Make AISettings sparse overrides only (#1180)
gecBurton Nov 12, 2024
4bc8091
Added logging to elastic for user messages
jamesrichards4 Nov 12, 2024
da42650
Merge pull request #1184 from i-dot-ai/feature/log-user-messages
jamesrichards4 Nov 12, 2024
2b6383d
script to extract gadget log
Nov 12, 2024
3b4e593
format
Nov 12, 2024
60d6321
add missing keys
Nov 12, 2024
1964a8a
Refactor and build tests for canned-prompts web-component
KevinEtchells Nov 12, 2024
eb9f948
Build tests for chat-history and chat-history-item web-components
KevinEtchells Nov 12, 2024
a5106ae
Allow for existing chats in chat-history tests
KevinEtchells Nov 12, 2024
b8a5806
feature/added MessagesState (#1166)
gecBurton Nov 12, 2024
830b46d
Added langfuse as dev dependency, docker compose setup and notebook e…
jamesrichards4 Nov 12, 2024
d479551
add langfuse
Nov 12, 2024
ddb0eb1
Bugfix/node20-and-imports (#1188)
gecBurton Nov 13, 2024
3225561
Merge branch 'feature/dev-with-langfuse' of github.com:i-dot-ai/redbo…
jamesrichards4 Nov 13, 2024
689bf68
Using readme and .env.example rather than note in notebook for langfu…
jamesrichards4 Nov 13, 2024
3b5b2ea
Merge pull request #1189 from i-dot-ai/feature/dev-with-langfuse
jamesrichards4 Nov 13, 2024
7343b80
allow metadata to fail (#1190)
gecBurton Nov 13, 2024
173a4c2
merge main
Nov 13, 2024
0a6a848
feature/display error message (#1192)
gecBurton Nov 13, 2024
e2919eb
Feature/basic api (#1195)
gecBurton Nov 14, 2024
2d07aef
redirect new users to signup
gecBurton Nov 14, 2024
0d19d23
remove fiels added in error
gecBurton Nov 14, 2024
19611e2
removed files
gecBurton Nov 14, 2024
11f4acd
removed files
gecBurton Nov 14, 2024
0739169
Merge branch 'main' into agent_investigation
Nov 14, 2024
e8d1b35
add langfuse to visualise decision
Nov 14, 2024
ddd8142
Using a test structure to execute the scenarios
jamesrichards4 Nov 15, 2024
f1b9ecc
Removing log analysis script as we've moved to langfuse
jamesrichards4 Nov 15, 2024
3acb34a
rerank gove search return with cosine similarity
Nov 15, 2024
aa85abe
add vcr marker
Nov 15, 2024
a11a4e5
Merge pull request #1200 from i-dot-ai/feature/test-based-format
jamesrichards4 Nov 18, 2024
1819a0c
Feature/basemodel state (#1193)
MarkDunne Nov 18, 2024
7f248cc
Tidied up test_ai log streams. No functional change
jamesrichards4 Nov 18, 2024
25dfd18
Merge branch 'main' into agent_investigation
jamesrichards4 Nov 18, 2024
1f23d91
Use FROM_EMAIL for web-components tests
KevinEtchells Nov 13, 2024
5cae170
Refactor and build tests for chat-title web-component
KevinEtchells Nov 13, 2024
0f5b7bb
Refactor and build tests for copy-text web-component
KevinEtchells Nov 13, 2024
35f5fb3
Build tests for exit-feedback web-component
KevinEtchells Nov 13, 2024
6a3948d
Add tests for message-input web-component
KevinEtchells Nov 13, 2024
3fa4515
Fix type imports
KevinEtchells Nov 13, 2024
73f063b
Refactor and build tests for send-message web-component
KevinEtchells Nov 13, 2024
5610cdb
Tweaking vscode settings to collect ai tests properly
jamesrichards4 Nov 18, 2024
20db022
Ruff
jamesrichards4 Nov 18, 2024
0f34fb4
Using elastic alias in gadget search documents rather than old style …
jamesrichards4 Nov 18, 2024
fdfbfc0
Show message feedback for SSR
KevinEtchells Nov 18, 2024
8b2ada9
Refactor and add tests for feedback-buttons web-component
KevinEtchells Nov 18, 2024
fe458e4
Merge branch 'main' into bugfix_gov_search_api
saisakul Nov 19, 2024
21eb06a
set gov search rerank to ON
Nov 19, 2024
9f84ea1
Re-word option on sign-up form
KevinEtchells Nov 19, 2024
e27b665
Merge pull request #1201 from i-dot-ai/bugfix_gov_search_api
saisakul Nov 19, 2024
a84c122
Bump aiohttp in /django_app in the pip group across 1 directory (#1204)
dependabot[bot] Nov 19, 2024
e6583f0
feature/added ToolNode (#1194)
gecBurton Nov 19, 2024
2347ea4
Merge remote-tracking branch 'origin/main' into agent_investigation
jamesrichards4 Nov 19, 2024
9bde3d8
Merge pull request #1202 from i-dot-ai/bugfix/preprod-search-docs
jamesrichards4 Nov 19, 2024
bc49664
Merge branch 'main' into agent_investigation
jamesrichards4 Nov 19, 2024
1014e64
updated redbox-core dependencies
jamesrichards4 Nov 19, 2024
3d735fb
Adding scikit learn dependency to match main
jamesrichards4 Nov 19, 2024
58c13ae
Fixing prompts and handling of message state to ensure tool calls and…
jamesrichards4 Nov 19, 2024
5ca3b42
Ruff
jamesrichards4 Nov 19, 2024
4a2adf4
Removing unneeded format functions and updating agent_experiments not…
jamesrichards4 Nov 19, 2024
72e1820
Ruff
jamesrichards4 Nov 19, 2024
5fdf1bd
Ruff
jamesrichards4 Nov 19, 2024
259497f
Merge pull request #1209 from i-dot-ai/bugfix/gadget-docs-tools-in-pr…
jamesrichards4 Nov 19, 2024
ed6352e
Build demo homepage in Sveltekit
KevinEtchells Nov 13, 2024
30d87c7
Import envs to SvelteKit where required
KevinEtchells Nov 13, 2024
8dd76c5
Add sessionid and sign-out functionality to Sveltekit app
KevinEtchells Nov 14, 2024
2239de8
Pull in user data from Django API
KevinEtchells Nov 14, 2024
8983064
Add sveltekit_app to Docker
KevinEtchells Nov 14, 2024
e3b9299
Use env for DJANGO_API_HOST
KevinEtchells Nov 14, 2024
5477c30
Get top-nav working in SvelteKit
KevinEtchells Nov 18, 2024
a45f426
chore/xfail openai tests (#1211)
gecBurton Nov 20, 2024
c866f4f
Track citations page views as a custom goal in Plausible
KevinEtchells Nov 19, 2024
5b81feb
added opensearch (#1208)
gecBurton Nov 20, 2024
e413941
Include package.json files in commits
KevinEtchells Nov 20, 2024
d7961aa
Feature/tools return artefact (#1214)
gecBurton Nov 20, 2024
b50a89c
exclude sveltekit-app (#1216)
gecBurton Nov 20, 2024
270cf1b
feature/refactored structure_documents_by_group_and_indices (#1210)
gecBurton Nov 21, 2024
02fd712
Merge branch 'main' into agent_investigation
jamesrichards4 Nov 21, 2024
1bf41e0
Merge pull request #1185 from i-dot-ai/agent_investigation
jamesrichards4 Nov 21, 2024
8bfb086
Build tests for remaining web-components
KevinEtchells Nov 21, 2024
6f188a2
Bump aiohttp in /redbox-core in the pip group across 1 directory (#1219)
dependabot[bot] Nov 21, 2024
c2a628c
reinstated gadget integration tests (#1217)
gecBurton Nov 21, 2024
c2f0674
Feature/refactor structure documents by file name (#1220)
gecBurton Nov 21, 2024
cba5d51
Update wording on citations page
KevinEtchells Nov 21, 2024
496cbc2
Only show documents user activity if some documents have been selected
KevinEtchells Nov 21, 2024
c622fd7
Update tests
KevinEtchells Nov 21, 2024
e117649
Feature/improved citation source handling (#1221)
gecBurton Nov 21, 2024
76497fb
Gov api return more docs (#1215)
saisakul Nov 21, 2024
7c69f12
bugfix/search gov.uk tests (#1223)
gecBurton Nov 21, 2024
19a4ba5
Ignoring all blank strings from db AISettings when overriding to avoi…
jamesrichards4 Nov 22, 2024
48ed711
Add expand/collapse button for activity
KevinEtchells Nov 14, 2024
3c22c75
Only show the expand/collapse activity button when there is > 1 item
KevinEtchells Nov 21, 2024
f29e10c
Ensure activity log text wraps
KevinEtchells Nov 22, 2024
54bb151
Add tests for activity-button
KevinEtchells Nov 22, 2024
1e7a933
Bump dash in /django_app in the pip group across 1 directory (#1225)
dependabot[bot] Nov 25, 2024
a91b6e4
Feature/breakout chat with documents large graph (#1227)
gecBurton Nov 25, 2024
14d128d
Add OpenSearch serverless IAM permissions (#1229)
dannyburke1 Nov 25, 2024
fca4513
Change Sveltekit port from 3000 to 3001
KevinEtchells Nov 25, 2024
2faa416
Make text-in-answer search case-insensitive
KevinEtchells Nov 26, 2024
92a62e1
Removed list of document names from search_documents tool activity lo…
jamesrichards4 Nov 26, 2024
37e9c72
Removed initial activity log line about user request from redbox-core
jamesrichards4 Nov 26, 2024
d42a5a3
Correcting expected activity log events in tests
jamesrichards4 Nov 26, 2024
0dd6395
Merge pull request #1237 from i-dot-ai/bugfix/remove-doc-names-from-a…
jamesrichards4 Nov 26, 2024
d6a519b
Remove Ask AI Reference
KevinEtchells Nov 27, 2024
7fa4d79
feature/removed metadata extraction (#1240)
gecBurton Nov 29, 2024
844a0bc
Add demo Lit component
KevinEtchells Nov 25, 2024
7a0167a
Setup lit-ssr node server
KevinEtchells Nov 27, 2024
ae2d29c
Setup render_lit Jinja filter
KevinEtchells Nov 27, 2024
e6496c2
Create new action-buttons with copy and rate options
KevinEtchells Nov 28, 2024
cf82c78
Add DomPurify to Lit SSR
KevinEtchells Nov 28, 2024
d3532f9
Add lit-ssr to Docker
KevinEtchells Nov 28, 2024
8ed126f
Use dynamic imports for Lit-ssr components
KevinEtchells Nov 29, 2024
df65e1e
Stop work on action-buttons
KevinEtchells Nov 29, 2024
b0d8bd0
remove ecr configuration
RyanWhite25 Dec 3, 2024
a1d6f36
remove universal submodule
RyanWhite25 Dec 3, 2024
3b20d70
Merge pull request #1243 from i-dot-ai/noticket/rem-universal
RyanWhite25 Dec 3, 2024
ed739f3
Allow AWS OpenSearch IAM Permissions (#1245)
dannyburke1 Dec 4, 2024
982259c
Improve display of code in messages
KevinEtchells Dec 6, 2024
d88bb93
Removed gadget
jamesrichards4 Dec 9, 2024
c4535f0
Removing unnecessary settings and functions only used by agentic search
jamesrichards4 Dec 9, 2024
5e19b20
Removed gadget integration test cases
jamesrichards4 Dec 9, 2024
b6746ec
Merge pull request #1248 from i-dot-ai/feature/remove-gadget
jamesrichards4 Dec 10, 2024
df8c2ba
removed search subgraph
gecBurton Dec 10, 2024
c290f30
remove parametrized retiever from get_root_graph
gecBurton Dec 10, 2024
6115914
removed parametrized retirver
gecBurton Dec 10, 2024
d03ccd9
remove self route
gecBurton Dec 10, 2024
ed10d35
removed search keyword
gecBurton Dec 10, 2024
c10e841
removed some unused functions
gecBurton Dec 10, 2024
1043431
graphs updated
gecBurton Dec 10, 2024
71d542a
Build new document-upload component
KevinEtchells Dec 6, 2024
2f87a7f
add platform for unstructured (#1230)
saisakul Dec 11, 2024
c7ea7ad
feature/added csr and ecs for lit-ssr (#1241)
gecBurton Dec 11, 2024
f244a64
Merge branch 'feature/v1.0.0' into feature/remove-search
gecBurton Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 6 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
{
"image": "mcr.microsoft.com/devcontainers/python:3.11-bookworm",
"postCreateCommand": "pip3 install -r requirements.txt && sudo apt-get update && sudo apt-get libgl-dev libmagic-dev -y",
"image": "python:3.12-bookworm",
"postCreateCommand": "pip3 install poetry && apt update && apt install libgl-dev libmagic-dev docker-ce -y && poetry install && chmod 777 data/elastic",
"name": "redbox-dev",
"features": {
"ghcr.io/devcontainers/features/aws-cli:1": {},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/terraform:1": {},
"ghcr.io/devcontainers-contrib/features/black:2": {},
"ghcr.io/devcontainers-contrib/features/isort:2": {},
"ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
"ghcr.io/jungaretti/features/make:1": {},
"ghcr.io/joshuanianji/devcontainer-features/aws-cli-persistence:0": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"runArgs": [
"--network",
"host" // use host networking so that the dev container can access the API when running the container locally
],
"forwardPorts": [
8501 // port for streamlit
8501,
5601,
9200,
9001
]
}
33 changes: 33 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# https://gds-way.digital.cabinet-office.gov.uk/manuals/programming-languages/editorconfig

root = true

[*.html]
indent_size = 2
indent_style = space
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.css]
indent_size = 2
indent_style = space
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.js]
max_line_length = 999

[*.mjs]
max_line_length = 999

[*.py]
indent_size = 4
indent_style = space
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
110 changes: 83 additions & 27 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,28 +1,84 @@
# === LLM ===
# Not developed yet
ANTHROPIC_API_KEY=
SERVER_ENDPOINT=
DEV_MODE=false
TOKENIZERS_PARALLELISM=false

CACHE_LLM_RESPONSES=true
CACHE_LLM_DB=data/.llm_cache.db

ELASTIC_VERSION=8.11.0
ELASTIC_USER=elastic
ELASTIC_PASSWORD='redboxpass'
LOGSTASH_INTERNAL_PASSWORD='redboxpass'
KIBANA_SYSTEM_PASSWORD='redboxpass'
METRICBEAT_INTERNAL_PASSWORD='redboxpass'
FILEBEAT_INTERNAL_PASSWORD='redboxpass'
HEARTBEAT_INTERNAL_PASSWORD='redboxpass'
MONITORING_INTERNAL_PASSWORD='redboxpass'
BEATS_SYSTEM_PASSWORD='redboxpass'

# "filesystem" or "elasticsearch"
STORAGE_MODE="filesystem"

# ACCOUNT_ID=""
# AWS_REGION=""

# COGNITO_REGION="",
# COGNITO_USERPOOL_ID="",
# COGNITO_APP_CLIENT_ID=""

# Choose one of using an OPEN AI key
OPENAI_API_KEY=

# Or an Azure Open AI endpoint
AZURE_OPENAI_MODEL=
OPENAI_API_VERSION=2024-02-01

LLM_MAX_TOKENS=1024

# === Development ===

DEV_MODE=true

# Langfuse
LANGFUSE_SECRET_KEY=sk-lf-878345f5-fa2c-46f0-8193-d6be00910ab0
LANGFUSE_PUBLIC_KEY=pk-lf-6f517f1f-3fd0-4b00-9c2d-e9756132cc11
LANGFUSE_HOST="http://localhost:3000"

# === Database ===

ELASTIC__VERSION=8.11.0
ELASTIC__USER=elastic
ELASTIC__PASSWORD=redboxpass
ELASTIC__PORT=9200
ELASTIC__SCHEME=http
ELASTIC__SUBSCRIPTION_LEVEL=basic

KIBANA_SYSTEM_PASSWORD=redboxpass
METRICBEAT_INTERNAL_PASSWORD=redboxpass
FILEBEAT_INTERNAL_PASSWORD=redboxpass
HEARTBEAT_INTERNAL_PASSWORD=redboxpass
MONITORING_INTERNAL_PASSWORD=redboxpass
BEATS_SYSTEM_PASSWORD=redboxpass

# === Embedding ===
EMBEDDING_MODEL=
EMBEDDING_AZURE_OPENAI_ENDPOINT=
EMBEDDING_OPENAI_API_KEY=

# === Object Storage ===

MINIO_PORT=9000
AWS_ACCESS_KEY=minioadmin
AWS_SECRET_KEY=minioadmin

AWS_REGION=eu-west-2

# minio or s3
OBJECT_STORE=minio
BUCKET_NAME=redbox-storage-dev

# === Django App ===

DJANGO_SETTINGS_MODULE=redbox_app.settings
DEBUG=True
DJANGO_SECRET_KEY=1n53cur3K3y
DJANGO_LOG_LEVEL=DEBUG
ENVIRONMENT=LOCAL
POSTGRES_USER=redbox-core
POSTGRES_DB=redbox-core
POSTGRES_PASSWORD=insecure
[email protected]
EMAIL_BACKEND_TYPE=CONSOLE
GOV_NOTIFY_API_KEY=f4k3_k3y
[email protected]
GOVUK_NOTIFY_PLAIN_EMAIL_TEMPLATE_ID=example-id
EMAIL_FILE_PATH='/app/mail'
FILE_EXPIRY_IN_DAYS=30
ALLOW_SIGN_UPS=True
DJANGO_API_HOST=http://localhost:8090

# === Playwright Tests ===

USER_EMAIL=

# === Security classifications ===
# The maximum security classification permitted for the app to handle

# OFFICIAL, OFFICIAL_SENSITIVE, SECRET or TOP_SECRET
MAX_SECURITY_CLASSIFICATION=OFFICIAL_SENSITIVE
9 changes: 0 additions & 9 deletions .flake8

This file was deleted.

9 changes: 9 additions & 0 deletions .github/.github.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# github specific
EC2_INSTANCE_TYPE=t3.large
RUNNER_SIZE=large

# App related
APP_NAME=redbox

REPO=redbox
INFRA_CONFIG_REPO=redbox-copilot-infra-config
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Context

<!-- Why are you making this change? What might surprise someone about it? -->

## Changes proposed in this pull request

<!-- If there are UI changes, please include Before and After screenshots. -->

## Guidance to review

<!-- How could someone else check this work? Which parts do you want more feedback on? -->

## Relevant links


## Things to check

- [ ] I have added any new ENV vars in all deployed environments
- [ ] I have tested any code added or changed
- [ ] I have run integration tests
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directories:
- "/"
- "/core-api/"
- "/django_app/"
- "/redbox-core/"
- "/worker/"
schedule:
interval: "daily"
groups:
minor-patch:
update-types:
- "minor"
- "patch"
ignore:
- dependency-name: faststream
- dependency-name: torch # https://dev-discuss.pytorch.org/t/pytorch-macos-x86-builds-deprecation-starting-january-2024/1690
- dependency-name: sentence-transformers
- dependency-name: pikepdf
57 changes: 57 additions & 0 deletions .github/workflows/_cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: _cicd (build and release entry)

on:
push:
branches:
- main
release:
types:
- released
workflow_dispatch:
inputs:
core_repo_reference:
description: 'The SHA to set the core repo to'
required: false
default: refs/heads/main
config_repo_reference:
description: 'The SHA to set the config repo to'
required: false
default: refs/heads/main

permissions:
id-token: write
contents: read

jobs:
release-dev:
# if: ${{ false }} # Uncomment this, and comment out the line below, to disable this workflow path
if: github.event_name == 'workflow_dispatch'
uses: i-dot-ai/redbox/.github/workflows/build-and-release.yml@main
with:
environment: dev
core_infra_repo_reference: ${{ inputs.core_repo_reference }}
config_repo_reference: ${{ inputs.config_repo_reference }}
author_name: ${{ github.actor }}
secrets: inherit

release-preprod:
# if: ${{ false }} # Uncomment this, and comment out the line below, to disable this workflow path
if: github.event_name == 'push' && github.ref_name == 'main'
uses: i-dot-ai/redbox/.github/workflows/build-and-release.yml@main
with:
environment: preprod
core_infra_repo_reference: 'refs/heads/main'
config_repo_reference: 'refs/heads/main'
author_name: ${{ github.actor }}
secrets: inherit

release-prod:
# if: ${{ false }} # Uncomment this, and comment out the line below, to disable this workflow path
if: github.event_name == 'release'
uses: i-dot-ai/redbox/.github/workflows/build-and-release.yml@main
with:
environment: prod
core_infra_repo_reference: 'refs/heads/main'
config_repo_reference: 'refs/heads/main'
author_name: ${{ github.event.release.user.login }}
secrets: inherit
Loading
Loading