Commit graph

5,500 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
e4cbc0a07f 🐛 fix(users.py): change router tag from "Login" to "Users" for better categorization
 feat(users.py): add status code 201 to the response of the add_user endpoint to indicate successful creation of a new user
🐛 fix(users.py): update the usage of UserCreate model to create a new User instance using User.from_orm(user) for better compatibility
 feat(users.py): add current_user parameter to the read_current_user endpoint to enforce authentication and authorization
 feat(users.py): add current_user parameter to the read_all_users endpoint to enforce authentication and authorization
 feat(users.py): add current_user parameter to the delete_user endpoint to enforce authentication and authorization. Also, add validation checks to prevent deleting own user account and unauthorized deletion of users.
2023-08-25 10:10:57 -03:00
Gabriel Luiz Freitas Almeida
43b2d62661 🔀 chore(router.py): add login_router to the APIRouter to include login functionality
🔀 chore(__init__.py): import and include login_router in the APIRouter to enable login functionality
🔀 chore(login.py): add tags to the login router to categorize it as "Login" in the API documentation
2023-08-25 10:10:19 -03:00
Gabriel Luiz Freitas Almeida
6b82b730cd 🔥 refactor(auth): remove unused code and dependencies in auth module
🔥 refactor(routers): remove unused code and dependencies in routers module
2023-08-25 10:09:37 -03:00
Gabriel Luiz Freitas Almeida
7987a10f92
Fixes bug when saving name and description, TextSplitters (#818) 2023-08-25 02:01:13 +00:00
Gabriel Luiz Freitas Almeida
9249e254fb
Merge branch 'main' into release 2023-08-25 01:59:38 +00:00
Gabriel Luiz Freitas Almeida
748f38e8c4
Fixed bug where name is not changed when description changes (#813) 2023-08-25 01:58:09 +00:00
Gabriel Luiz Freitas Almeida
f19e745b77
New Text Splitters (#817) 2023-08-25 01:56:26 +00:00
Gabriel Luiz Freitas Almeida
a28df1f08f 📝 docs(LanguageRecursiveTextSplitter.py): update documentation link to point to the correct URL
🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'documents' parameter from Document to list[Document] and change return type from Document to list[Document] to improve clarity and consistency
🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'chunk_overlap' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling
🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'chunk_size' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling
🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'documents' parameter from Document to list[Document] and change return type from Document to list[Document] to improve clarity and consistency
🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'separators' parameter from Optional[str] to Optional[list[str]] and handle conversion to list of escaped characters to improve flexibility and error handling
🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'chunk_overlap' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling
🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'chunk_size' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling
2023-08-24 22:52:16 -03:00
Gabriel Luiz Freitas Almeida
c9f4969080 🐛 fix(types.py): fix regex pattern in extract_type_from_optional function to correctly extract type from optional field_type
🐛 fix(types.py): fix logic in add_new_custom_field function to correctly set is_list flag when field_type contains "list" keyword
 feat(types.py): add field_contains_list variable to check if field_type contains "list" keyword to improve semantics in add_new_custom_field function
2023-08-24 22:49:52 -03:00
Gabriel Luiz Freitas Almeida
86927d10d3 🔧 fix(types.py): add support for extracting inner type from list field types in process_type function 2023-08-24 22:37:30 -03:00
Gabriel Luiz Freitas Almeida
b326a7e246 📦 chore(pyproject.toml): update package version from 0.4.15 to 0.4.16
🔧 chore(pyproject.toml): add pillow package as a dependency for the project
2023-08-24 22:25:16 -03:00
Gabriel Luiz Freitas Almeida
0649b61fca 📦 chore(LanguageRecursiveTextSplitter.py): add LanguageRecursiveTextSplitter component to split text into chunks based on language
📝 docs(LanguageRecursiveTextSplitter.py): add documentation link for LanguageRecursiveTextSplitter component
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build_config method to use options from Language enum for separator_type
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to split text into chunks based on specified length and overlap
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to handle chunk_size and chunk_overlap as integers
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to use RecursiveCharacterTextSplitter from langchain.text_splitter
🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to split documents using RecursiveCharacterTextSplitter and return the chunks
2023-08-24 22:24:07 -03:00
Gabriel Luiz Freitas Almeida
86730437a5 feat(RecursiveCharacterTextSplitter.py): add RecursiveCharacterTextSplitter component to split text into chunks of a specified length 2023-08-24 22:23:45 -03:00
Gabriel Luiz Freitas Almeida
383c9dc5ff 📝 docs(text-splitters.mdx): improve formatting and add missing information about LanguageRecursiveTextSplitter and its parameters
🐛 fix(text-splitters.mdx): fix typo in the description of `separators` parameter in `RecursiveCharacterTextSplitter`
2023-08-24 22:23:27 -03:00
Gabriel Luiz Freitas Almeida
40ab6b1e87 🔥 refactor(config.yaml): remove RecursiveCharacterTextSplitter from the config file as it is no longer used
📚 docs(config.yaml): update documentation link for CharacterTextSplitter in the config file
2023-08-24 22:22:31 -03:00
Gabriel Luiz Freitas Almeida
95ff2a7f6b 🔧 chore(util.py): add missing import for 'Document' from langchain.schema
🔧 chore(util.py): add missing type hint for 'documents' parameter in build_loader_repr_from_documents function
🔧 chore(util.py): add logic to calculate average document length and display summary information in build_loader_repr_from_documents function
2023-08-24 22:22:09 -03:00
Gabriel Luiz Freitas Almeida
f950bd8a2c
Added readme for docker example (#815) 2023-08-25 00:25:12 +00:00
Gabriel Luiz Freitas Almeida
6de92ea788
Fixes bug in websocket and updates dependencies (#816) 2023-08-25 00:23:40 +00:00
Gabriel Luiz Freitas Almeida
04b14747a2
Merge branch 'main' into release 2023-08-25 00:23:28 +00:00
Gabriel Luiz Freitas Almeida
43ca5e32d7 🔖 chore(pyproject.toml): update package version from 0.4.14 to 0.4.15
🔖 chore(pyproject.toml): update gunicorn package from version 21.1.0 to 21.2.0
🔖 chore(pyproject.toml): update chromadb package from version 0.3.21 to 0.3.0
🔖 chore(pyproject.toml): update rich package from version 13.4.2 to 13.5.0
🔖 chore(pyproject.toml): update unstructured package from version 0.7.0 to 0.10.0
🔖 chore(pyproject.toml): update pypdf package from version 3.11.0 to 3.15.0
🔖 chore(pyproject.toml): update fake-useragent package from version 1.1.3 to 1.2.1
🔖 chore(pyproject.toml): update qdrant-client package from version 1.3.0 to 1.4.0
🔖 chore(pyproject.toml): update weaviate-client package from version 3.21.0 to 3.23.0
🔖 chore(pyproject.toml): update cohere package from version 4.11.0 to 4.21.0
2023-08-24 21:20:33 -03:00
Gabriel Luiz Freitas Almeida
32de3e1f0a 🔧 chore(Makefile): exclude .venv folder from mypy linting to improve performance and avoid unnecessary errors 2023-08-24 21:20:11 -03:00
Gabriel Luiz Freitas Almeida
9fb1a26277 🐛 fix(manager.py): catch all exceptions instead of just TypeError when loading JSON payload to improve error handling and prevent crashes 2023-08-24 21:10:34 -03:00
Cristhian Zanforlin Lousa
151d01f506 🔧 chore(Makefile): remove unnecessary semicolons in Makefile commands
🔧 chore(Makefile): remove unnecessary package-lock.json deletion in install_frontendc command
 feat(ParameterComponent): add KeypairListComponent to handle key-value pairs
🔧 chore(KeypairListComponent): create KeypairListComponent to handle key-value pairs
🔧 chore(KeypairListComponent): add handleChangeKey and handleChangeValue functions to handle changes in key-value pairs
🔧 chore(KeypairListComponent): add button to add new key-value pair and remove existing key-value pair
🔧 chore(KeypairListComponent): add disabled prop to disable editing of key-value pairs
🔧 chore(KeypairListComponent): add editNode prop to style input fields in edit mode
🔧 chore(types): add KeyPairListComponent type definition
2023-08-24 21:00:38 -03:00
Lucas Oliveira
1e5fc97013 Bug fixed 2023-08-24 20:21:09 -03:00
anovazzi1
9b3e4f27a5 fix(tabsContext.tsx): handle error message properly when saving changes in the tabs provider
The error handling in the tabs provider has been improved to display a more meaningful error message when there is an error while saving changes. Instead of directly assigning the error to the `setErrorData` state variable, the error message is now wrapped in an object with a title and a list of error messages. This change ensures that the error message is displayed consistently and provides better context to the user.
2023-08-24 19:50:17 -03:00
anovazzi1
cea8acacd8 update type to avoid undefined 2023-08-24 19:42:48 -03:00
anovazzi1
bf568ad22f update attribute 2023-08-24 19:42:05 -03:00
anovazzi1
aaf34d49bb
Fix success messages to work only after backend response (#804)
🔧 fix(tabsContext.tsx): add setSuccessData to useContext to fix missing
function error
 feat(tabsContext.tsx): add success alert when changes are saved
successfully in TabsProvider component
🔧 fix(flowSettingsModal/index.tsx): remove setSuccessData from
useContext to fix missing function error
🔧 fix(AdminPage/index.tsx): remove console.log statement
 feat(AdminPage/index.tsx): add success alert when user is edited
successfully
🔧 fix(extraSidebarComponent/index.tsx): remove setSuccessData from
useContext to fix missing function error
2023-08-24 17:59:40 -03:00
anovazzi1
544738ebef
Merge branch 'login' into bugfix-msgSuccess 2023-08-24 17:58:25 -03:00
Gabriel Luiz Freitas Almeida
41ef2fd2f7 🔧 fix(alembic): fix indentation and formatting issues in add_apikey_table migration script
 feat(alembic): add support for creating apikey and user tables in the database
🔥 chore(alembic): remove flowstyle and component tables from the database schema
2023-08-24 17:42:53 -03:00
Gabriel Luiz Freitas Almeida
58121cc6ca 🔥 refactor(main.py): remove unused routers from the app to improve code cleanliness and reduce unnecessary imports 2023-08-24 17:42:33 -03:00
Gabriel Luiz Freitas Almeida
d9cbf17b1a 🔄 chore(router.py): add users_router and api_key_router to the APIRouter to include the new routes for users and api keys
🔄 chore(__init__.py): add users_router and api_key_router to the __all__ list to include the new routes for users and api keys
🆕 feat(api_key.py): add new routes for retrieving, creating, and deleting API keys
🆕 feat(login.py): add new routes for user login, auto login, and token refresh
🆕 feat(schemas.py): add new schemas for API key response and users response
🆕 feat(users.py): add new routes for adding, reading, updating, and deleting users
🗑️ chore(health.py): remove health router as it is no longer needed
🔄 chore(utils.py): update import statements for User model and update_user_last_login_at function
2023-08-24 17:41:41 -03:00
anovazzi1
6dbc06dc12 Merge remote-tracking branch 'origin/dev' into bugfix-msgSuccess 2023-08-24 17:41:26 -03:00
anovazzi1
704fc6a244
fix: tweaks page (#807)
This pull request addresses multiple bugs and issues that have been
identified on the tweaks page of our application. The changes
implemented here aim to enhance the overall user experience and improve
the stability of the page. Below is an overview of the resolved issues:
2023-08-24 17:40:36 -03:00
anovazzi1
24e84aa2fe Merge branch 'dev' into bugfix-msgSuccess 2023-08-24 17:39:52 -03:00
Gabriel Luiz Freitas Almeida
1a51cc0848 📦 feat(api_key): add ApiKey model and related classes for database operations
📦 feat(component): add Component model and related classes for database operations

📦 feat(flow): add Flow model and related classes for database operations

📦 feat(token): add Token model for authentication

📦 feat(user): add User model and related classes for database operations

📦 feat(user): add utility functions for user operations
2023-08-24 17:32:26 -03:00
anovazzi1
668387dde8 Merge branch 'dev' into bugfix-tweakPage 2023-08-24 17:18:40 -03:00
anovazzi1
e863f79782 update git attributes 2023-08-24 17:15:42 -03:00
anovazzi1
c49ee222be update git attributes 2023-08-24 17:15:42 -03:00
anovazzi1
4fab63e5de code format 2023-08-24 17:10:02 -03:00
anovazzi1
c1c5b2242f fix(buildTrigger/index.tsx): change the success message title from "Code is ready to run" to "Flow is ready to run" for better clarity and accuracy 2023-08-24 17:08:24 -03:00
igorrCarvalho
f8d51b4882 Refactor: Move header login buttons to right side of flow name 2023-08-24 14:29:24 -03:00
Matheus Jacques
d13771d8c9 🔧 chore(terraform): update security group rules to allow ingress and egress traffic on port 8080
🔧 chore(terraform): modify user data script for manager instance to fetch instance metadata with token and start a netcat server on port 8080 to provide join token
🔧 chore(terraform): modify user data script for worker instance to fetch manager IP and join the swarm using the join token obtained from the manager on port 8080
2023-08-24 18:48:44 +02:00
Guangya Liu
261e3119c3 Added readme for docker example 2023-08-24 12:28:42 -04:00
Gabriel Luiz Freitas Almeida
aa47af7a3b
Fix orjson_dumps import (#814) 2023-08-24 15:07:59 +00:00
Matheus Jacques
3fe30671d9 fix(terraform): update subnet_id in docker-swarm module to use swarm-public-subnet instead of swarm-subnet for improved clarity
feat(terraform): add aws_subnet resource for swarm-public-subnet to create a public subnet for the swarm cluster
feat(terraform): add aws_internet_gateway resource to create an internet gateway for the swarm VPC
feat(terraform): add aws_route_table resource to create a route table for the swarm VPC
feat(terraform): add aws_route_table_association resource to associate the swarm-public-subnet with the public route table
2023-08-24 17:06:23 +02:00
DiogenesBR
fe3a9c61df fix the imports of orjson_dumps 2023-08-24 14:57:18 +00:00
DiogenesBR
cdd25dbeb2 add some new types to the .gitattributes 2023-08-24 14:56:09 +00:00
Lucas Oliveira
eaf70303ee Fixed bug where name is not changed when description changes 2023-08-24 10:52:23 -03:00
Gabriel Luiz Freitas Almeida
fd6ef1815b format 2023-08-23 21:43:23 -03:00