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

Draft: develop into master #190

Merged
merged 166 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
50e3b3c
Make sidebar state selected properly in nested pages e.g. /tool/id an…
tomlynchRNA Apr 17, 2024
18a398b
Imrpove toolselector with search/filtering, limit the height and allo…
tomlynchRNA Apr 17, 2024
9d6161c
For vector-db-proxy, dockerignore the .env and set LOGGING_LEVEL=debug
tomlynchRNA Apr 17, 2024
cea69d2
Merge branch 'master' into develop
tomlynchRNA Apr 17, 2024
1118ccf
setting use_gpu to true
ragyabraham Apr 22, 2024
b896524
Change webhook for successful sync to read slack blocks format
tomlynchRNA Apr 22, 2024
3182644
Merge develop crewAI into our master, merge upstream changes into our…
tomlynchRNA Apr 22, 2024
a33ae9d
Fix typing of notification and add new optionsl type and details
tomlynchRNA Apr 22, 2024
f22a9ef
Update sync success webhook title ref 162
tomlynchRNA Apr 22, 2024
bda18e1
Update datasource tables and components to have a new embedding progr…
tomlynchRNA Apr 22, 2024
1bfbb72
Change datasources to include total, success, error count of records
tomlynchRNA Apr 22, 2024
4da3f2e
adding in record count into mongo to show the status of the embeddin…
ragyabraham Apr 22, 2024
28956c4
correct progress bar on embedding
tomlynchRNA Apr 22, 2024
d8414d7
Fix percentage and props shown in embedding loading bar
tomlynchRNA Apr 22, 2024
73d08f9
Refactor model builder to use factory
charl3sj Apr 19, 2024
bc50e36
Remove all extra fields passed to `FastEmbedEmbeddings`
charl3sj Apr 22, 2024
6da545a
Merge branch 'master' into develop
tomlynchRNA Apr 22, 2024
d439e4d
Merge branch 'master' into develop
tomlynchRNA Apr 22, 2024
14cb0f0
Merge branch 'feature/162-airebyte-embedding-status' into develop
tomlynchRNA Apr 22, 2024
2ef3204
Remove all extra fields passed to `FastEmbedEmbeddings`
charl3sj Apr 22, 2024
44f0550
Improve style of embedding datasources loading bar
tomlynchRNA Apr 22, 2024
787e883
#151 (in progress): Add Retriever types
charl3sj Apr 23, 2024
1c3cba6
Merge branch 'develop' into retrievers
tomlynchRNA Apr 23, 2024
1050148
Add `retrieval` to tools, allow setting 3 strategies on tool form, an…
tomlynchRNA Apr 23, 2024
7bb16e4
Dont allow selecting retrievers that require metadata for file sources
tomlynchRNA Apr 23, 2024
ad3a2ea
eslint fix
tomlynchRNA Apr 24, 2024
bfcdab3
#151: Add self-query, time-weighted retrievers
charl3sj Apr 24, 2024
a1329f0
Comment out updating timestamp in time-weighted retriever for now
charl3sj Apr 24, 2024
8027a7b
using full python image as builder rather than slim to add gcc
anada10 Apr 24, 2024
110fc39
Update install to set sync success webhook (only) now
tomlynchRNA Apr 24, 2024
246147f
Remove required prop from tool form
tomlynchRNA Apr 24, 2024
a5d2072
Use customized TimeWeightedVectorStoreRetriever with configurable tim…
charl3sj Apr 24, 2024
a066a8c
Fix NaN issue in ProgressBar and correct barberpole style/colors of d…
tomlynchRNA Apr 24, 2024
e1b495b
Add decay rate and time weight field on time weighted retrieval
tomlynchRNA Apr 24, 2024
edfde70
Merge branch 'develop' into retrievers
tomlynchRNA Apr 24, 2024
800bc37
Add multi-query retriever
charl3sj Apr 24, 2024
32794f8
add SELF_QUERY to enum and forms, fix `retriever` property to be `ret…
tomlynchRNA Apr 24, 2024
bba0c49
Use kwargs for SelfQueryRetriever instantiation
charl3sj Apr 24, 2024
8745cb5
Refactor, move datasources status indicator to a component to dedupli…
tomlynchRNA Apr 25, 2024
a16c3bb
Make function calling model optional in agent form
tomlynchRNA Apr 25, 2024
990e143
Revert "Make function calling model optional in agent form"
tomlynchRNA Apr 25, 2024
92454f5
Make function calling model optional in agent form
tomlynchRNA Apr 25, 2024
b7908e7
Add ability to input descriptions on strema fields
tomlynchRNA Apr 26, 2024
87514b1
Merge branch 'develop' into refactor-model-builder
tomlynchRNA Apr 26, 2024
c0d5713
Merge pull request #158 from rnadigital/refactor-model-builder
tomlynchRNA Apr 26, 2024
05de57c
Lock rust docker image to specific version tag
tomlynchRNA Apr 26, 2024
6e1a55e
Add docker volume and make qdrant data persistent in docker-compose
tomlynchRNA Apr 26, 2024
e7e74a9
Don't send retriever_config in connection test datasource API
tomlynchRNA Apr 29, 2024
f5ee5b0
Fix a state issue with account and billing json fetching, solves bug …
tomlynchRNA Apr 29, 2024
5744743
Merge branch 'develop' into retrievers
tomlynchRNA Apr 29, 2024
2b33ecd
Make updating streams of a datasource (has descriptions) update all t…
tomlynchRNA Apr 29, 2024
fb73f33
Overwrite langchain methods that handle metadata in qdrant retriever …
tomlynchRNA Apr 29, 2024
b6eebd4
Reduce logging, use logging and limit to debug log level
tomlynchRNA Apr 29, 2024
2c0859f
Merge branch 'develop' into retrievers
tomlynchRNA Apr 29, 2024
0ffa3db
Merge branch 'master' into develop
tomlynchRNA Apr 29, 2024
efa1043
#176 Add RetrieverCallbackHandler to show retriever debug messages
charl3sj Apr 29, 2024
e9117bf
Fix default retriever_type
charl3sj Apr 29, 2024
2e2589b
Merge pull request #189 from rnadigital/rag-debug-logs
tomlynchRNA Apr 29, 2024
d42cf6d
Change update datasource streams API to always try to create the coll…
tomlynchRNA Apr 30, 2024
61c9f5a
Set qdrant container to DEBUG log level in env
tomlynchRNA Apr 30, 2024
e7cd466
Monkey patch the time weighted retriever to work with our metadata an…
tomlynchRNA Apr 30, 2024
911f27b
Update time weighted format function to includ ethe time weight score…
tomlynchRNA Apr 30, 2024
faa38bb
Add missing team bits in permissions lib
tomlynchRNA Apr 30, 2024
a6239a5
Change provider name gcs -> google
tomlynchRNA Apr 30, 2024
fd9854f
Bugfix and change logging in webapp checkresourceslug middleware
tomlynchRNA Apr 30, 2024
63f63fe
Clear and reprint logo after running ab-platform to make logo more pr…
tomlynchRNA Apr 30, 2024
820eb16
Experimentally disable the current context injection and propmt engin…
tomlynchRNA Apr 30, 2024
17d5acb
Improve handling of datasource status/progress bars, show READY if we…
tomlynchRNA Apr 30, 2024
836fbc7
Test a better loading state for inline messages
tomlynchRNA Apr 30, 2024
14ee6a9
eslint fix
tomlynchRNA Apr 30, 2024
eafb82f
feature-80 : added flag for secure session
x-08 Apr 30, 2024
bdc863a
Merge pull request #192 from x-08/feature/80-fix-add-secure-flag-use-…
tomlynchRNA May 1, 2024
4ccc922
Allow webapp to serve from static folder
tomlynchRNA May 1, 2024
3caf6a5
Make webapp log actual host+port used from env on startup
tomlynchRNA May 1, 2024
c0be35e
Experiment some more with human input agent/tool prompts in multi tas…
tomlynchRNA May 1, 2024
240882e
Allow socket messages to be overwritten
tomlynchRNA May 1, 2024
3fd0051
improve loading state of avatar when uploading
tomlynchRNA May 1, 2024
00f8dea
revert conditional logging of events in socketio
tomlynchRNA May 1, 2024
56be844
Make termination state set immediately when the user hits stop
tomlynchRNA May 1, 2024
bcb9ebc
Allow verbose to be passed to agent from agent config directly
tomlynchRNA May 1, 2024
647ef65
Move stop generating button to inside the play button
tomlynchRNA May 1, 2024
0cdda9a
Attach human input tool to multi task apps
tomlynchRNA May 1, 2024
f3b4640
Revert bcb9ebc98bb44086ce38a24ca44203460d56f166
tomlynchRNA May 1, 2024
17d7fd4
Add a memory checkbox in app form to set memory option of crew
tomlynchRNA May 1, 2024
9e1d404
Improved UX of chat messages, showing when thoughts and a more consis…
tomlynchRNA May 1, 2024
5bb8ced
Add memory to the crew model in agent backend
tomlynchRNA May 1, 2024
4967808
Add Wikipedia and Wikidata langchain tools as builtins
charl3sj May 2, 2024
d86047c
Add builtin tool definitions to webapp
charl3sj May 2, 2024
08cf0a3
Merge pull request #195 from rnadigital/builtin-tools
tomlynchRNA May 2, 2024
ead764b
Improve consistency of avatars in chat
tomlynchRNA May 3, 2024
21e0299
Add cache close #185
tomlynchRNA May 3, 2024
dcb22b2
Further avatar and chat visual improvements
tomlynchRNA May 3, 2024
23ebe2d
eslint fix import order
tomlynchRNA May 3, 2024
2e840b2
Add more builtin tools
charl3sj May 3, 2024
b09bc03
Add support for ollama models
tomlynchRNA May 3, 2024
0001c81
Merge pull request #197 from rnadigital/builtin-tools
tomlynchRNA May 3, 2024
b021b01
Bugfixes to database and state for new ollama and models without a cr…
tomlynchRNA May 3, 2024
6b6588c
remove filtering of models without credentials in build_models
tomlynchRNA May 3, 2024
0ca6cd7
add llama3 and 70b
tomlynchRNA May 3, 2024
f5bc802
Add missing exclude properties in model factory
tomlynchRNA May 7, 2024
ccb6343
Bugfix editing a tool with RAG attached removing self query descriptions
tomlynchRNA May 7, 2024
9962a9c
Add requiresHumanInput boolean field to Task
charl3sj May 7, 2024
8570242
add more models
tomlynchRNA May 7, 2024
9451719
Improve malformed json handling for human inputand rag tool
tomlynchRNA May 7, 2024
e33dba7
Merge pull request #202 from rnadigital/human-input
tomlynchRNA May 7, 2024
25bb644
Fix typo in name of amazon secret access key
tomlynchRNA May 8, 2024
d415025
Change server init order
tomlynchRNA May 8, 2024
afbf055
Make datasource status indicator more accurate when not complete
tomlynchRNA May 8, 2024
8e077a9
Add airbyte setup calls to webapp startup
tomlynchRNA May 9, 2024
2e5fb54
Remove airbyte setup from install.sh script, leave to the webapp clos…
tomlynchRNA May 9, 2024
ccf7fe0
eslint fix
tomlynchRNA May 9, 2024
d53656b
Add checkbox for requiresHumanInput on frontend
tomlynchRNA May 9, 2024
93b2515
Add name to task in mongo models so task name can be templated into p…
tomlynchRNA May 9, 2024
4beb137
Rename default retriever and switch default to self query
tomlynchRNA May 9, 2024
9be8b50
update crewai fork
tomlynchRNA May 9, 2024
4195183
Rename default retriever and switch default to self query (webapp)
tomlynchRNA May 9, 2024
2e19a7e
Add logging of secret and storage client options
tomlynchRNA May 9, 2024
2f155ff
Fix inconsistent amazon secret key
tomlynchRNA May 9, 2024
8d83bf1
Fix ismultiple in manager model dropdown close #206
tomlynchRNA May 9, 2024
099ddff
use MessageBody for inline message contents
tomlynchRNA May 9, 2024
53cd778
Revert "feature-80 : added flag for secure session"
tomlynchRNA May 9, 2024
038fcbe
Fix undefined resourceSlug/memberId in getaccount api
tomlynchRNA May 9, 2024
f4cb1bb
Make airbyte setup code set the env vars
tomlynchRNA May 10, 2024
42d44ac
Remove async execution on frontend
tomlynchRNA May 10, 2024
cd46658
Adjust middleware orders and logic so unauthed users to e.g. billign …
tomlynchRNA May 10, 2024
de1bb4e
Auth middleware tweaks
tomlynchRNA May 10, 2024
1cdd238
Add start of usage calculation method and usage check middlewares.
tomlynchRNA May 10, 2024
710878c
Add plan check for allowed datasources to upload
tomlynchRNA May 10, 2024
832aa08
Add restriction on inviting team members on non teams plans
tomlynchRNA May 10, 2024
301bdf9
Add a subscription plan checks for creating teams
tomlynchRNA May 10, 2024
d4ab207
Implement usage fetch middleware, sets usages before checkSubscriptio…
tomlynchRNA May 10, 2024
4118668
eslint fix
tomlynchRNA May 10, 2024
8c483ce
Limit model (type) selection based on plan
tomlynchRNA May 10, 2024
b3aff04
update poetry lock
tomlynchRNA May 10, 2024
a9ce956
Add restriction (front and backend) on actual datasources depending o…
tomlynchRNA May 10, 2024
0629d01
Add possibility to hide unavailable (due to plan) connectors
tomlynchRNA May 10, 2024
ed74cc5
eslint fix
tomlynchRNA May 11, 2024
4d41517
Change how google application credentials are passed to webapp in build
tomlynchRNA May 13, 2024
7bc8212
Fix error log variable clobbering in airbyte setup
tomlynchRNA May 13, 2024
2517ad7
Add hubspot meeting link end, remove unused envs
tomlynchRNA May 13, 2024
8051246
Add NEXT_PUBLIC_HUBSPOT_MEETING_LINK for the enterprise plan button link
tomlynchRNA May 13, 2024
86431ea
Improve airbyte startup to use envs for username and password
tomlynchRNA May 13, 2024
d9da3d2
Add missing import
tomlynchRNA May 13, 2024
08efc4b
Add more debug logs to airbyte setup
tomlynchRNA May 13, 2024
c21e92e
Add file size upload limit modal to upgrade subscription
tomlynchRNA May 13, 2024
c8c1786
Fix chat manager model being set to null after refresh and save
tomlynchRNA May 13, 2024
dda85c3
Ad banner for subscription ending with date and manage subscription b…
tomlynchRNA May 13, 2024
d7938b7
Update poetry lock
tomlynchRNA May 13, 2024
1123216
eslint fix
tomlynchRNA May 13, 2024
d6fbe1f
Fix invalid hrefs with double // in pagetitlewithnewbutton link href …
tomlynchRNA May 13, 2024
7758a7b
Undo part of patch to RJSF form to adjsut datetime format 000.Z
anada10 May 13, 2024
13a53ad
Make trial banner notification a component
tomlynchRNA May 13, 2024
a02e66e
Fix appform not handling no initialModels for chat manager llm on new…
tomlynchRNA May 14, 2024
4f4b253
Update models list for gpt
tomlynchRNA May 14, 2024
e5e0763
Add addons for stripe
tomlynchRNA May 14, 2024
de2eb35
Add the +/- for addons and display addons current count in sub cards
tomlynchRNA May 14, 2024
1aa90f9
rename TrialNotification -> BillingBanner
tomlynchRNA May 14, 2024
934b61a
Merge branch 'feature/161-subscription-todos' into develop
tomlynchRNA May 14, 2024
df48489
Bugfix retrieval strategy default for file uploads
tomlynchRNA May 14, 2024
b90dc2f
Update datasource status indicator progress bar and datasource contro…
tomlynchRNA May 14, 2024
191e742
Merge branch 'master' into develop
tomlynchRNA May 14, 2024
f0abb39
Add stripe test addon price ids
tomlynchRNA May 14, 2024
78b7fb4
Correct name of key for retriever in file upload form submission
tomlynchRNA May 15, 2024
1831349
Make account creation still work, but set enterprise plan and skip st…
tomlynchRNA May 15, 2024
9c4384c
Immediately return text query in rag tool
tomlynchRNA May 15, 2024
5a42aa5
Cleanup and update CHANGELOG
tomlynchRNA May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 26 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
### v1.1.0
- **Hardware Acceleration Support**: Added support for CoreML, CUDA, ROCm to cater to diverse deployment environments.
- **Docker-Compose and Install Script Improvements**: Updated `docker-compose` configurations and `install.sh` script for better setup experience and development workflow. Includes more specific version locking for reliability and easier automation.
- **Permission System**: Implemented a fine-grained permission system.
- **README and Usage Examples**: Updated documentation to enhance clarity and user guidance.
- **Secret Management Overhaul**: Redesigned secret management using a factory/provider pattern for Google Secrets and local `.env` configurations.
- **Storage Backend Overhaul**: Redesigned file storage using a factory/provider pattern for GCS or to simply store on local disk and share a volume between webapp & vector-db-proxy.
- **MongoDB Model Enhancements**: Added filename support for MongoDB models and optimized queries.
- **Vector Database Proxy Updates**: Updated Vector DB Proxy for better structure and maintainability, including production build optimizations.
- **Local Storage and Thread Utilization**: Enhanced local storage handling and introduced thread utilization control.
- **Code Quality and Dependency Management**: Addressed ESLint warnings, updated configurations, and removed unused dependencies.
- **Frontend Updates**: Enabled avatars for apps and agents, added markdown preview for app descriptions, and improved UI components.
- **Stripe Subscription and Billing**: Implemented Stripe functionalities for plan management and addon cross-selling.

---
### v1.2.0
- Add support for ollama models.
- Implement more advanced retrieval strategies for data sources. (raw, self query, multi query, time weighted)
- First iteration of implementing plan limits and stripe handling.
- Make new accounts be Enterprise plan by default when no stripe API key set (for OS users).
- Make Airbyte setup handled from within webapp instead of install.sh
- Add human input checkbox on tasks to choose whether a task requires human input
- Update datasource tables and components to have a new embedding status progress bar.
- Improve consistency of avatars in chat and make them work with the local storage provider.
- Improve chat UX and add customer formatting for thoughts, tasks, and tool messages.
- Add ability to input descriptions on datasource fields for self-query retrieval.
- Add Docker volume and make Qdrant data persistent in docker-compose.
- Various bug fixes and optimizations to improve overall performance and reliability.

Legacy changelog:

### 1.0.0
- TODO
### v1.1.0
- Added support for CoreML, CUDA, ROCm to cater to diverse deployment environments.
- Updated `docker-compose` configurations and `install.sh` script for better setup experience and development workflow. Includes more specific version locking for reliability and easier automation.
- Implemented a fine-grained permission system.
- Updated documentation to enhance clarity and user guidance.
- Redesigned secret management using a factory/provider pattern for Google Secrets and local `.env` configurations.
- Redesigned file storage using a factory/provider pattern for GCS or to simply store on local disk and share a volume between webapp & vector-db-proxy.
- Added filename support for MongoDB models and optimized queries.
- Updated Vector DB Proxy for better structure and maintainability, including production build optimizations.
- Enhanced local storage handling and introduced thread utilization control.
- Addressed ESLint warnings, updated configurations, and removed unused dependencies.
- Enabled avatars for apps and agents, added markdown preview for app descriptions, and improved UI components.
- Implemented Stripe functionalities for plan management and addon cross-selling.

### 0.5.0
- Add RAG from file upload or connection to other data source via Airbyte
Expand Down
10 changes: 2 additions & 8 deletions agent-backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,5 @@ keyfile.json
*.ipynb
src/output
output
src/tools/*
!src/tools/global_tools.py
!src/tools/build_request_from_api_spec.py
!src/tools/code_execution_docker_notebook_tool.py
!src/tools/code_execution_tool.py
!src/tools/rag_tool.py

.run

.run
2 changes: 1 addition & 1 deletion agent-backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the official Python image as the base image
FROM python:3.11-slim as builder
FROM python:3.11 as builder

# Set the working directory inside the container
WORKDIR /app
Expand Down
1,390 changes: 777 additions & 613 deletions agent-backend/poetry.lock

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions agent-backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ onnxruntime = "1.17.0"
fastembed = "^0.2.2"
qdrant-client = "^1.8.0"
arxiv = "^2.1.0"
lark = "^1.1.9"
wikipedia = "^1.4.0"
mediawikiapi = "^1.2"
wikibase-rest-api-client = "^0.1.3"
duckduckgo-search = "^5.3.0"
stackapi = "^0.3.0"
youtube-search = "^2.1.2"


[build-system]
Expand Down