Commit Graph

1410 Commits

Author SHA1 Message Date
Richard Beales
5bb77a8751 Merge pull request #794 from crimson-knight/add-documentation-for-caching-types
Adds information on how to use the other cache methods available
2023-04-12 19:31:23 +01:00
Seth T
d24c4af37d Merge branch 'master' into add-documentation-for-caching-types 2023-04-12 14:27:07 -04:00
Drikus Roor
d780988554 chore: Add new lines to end of files 2023-04-12 20:21:42 +02:00
Drikus Roor
29d6ecd4d3 ci: Allow flake8 failure since there are a lot of issues 2023-04-12 20:21:42 +02:00
Drikus Roor
76cc0d2d74 docs: Document flake8 linter 2023-04-12 20:21:42 +02:00
Drikus Roor
87d465a8f1 chore: Rename unit test workflow file to ci.yml 2023-04-12 20:21:42 +02:00
Drikus Roor
dc0a94bba3 ci: Add a flake8 linting job 2023-04-12 20:21:42 +02:00
Drikus Roor
fa5b71c022 docs: Update README.md about running tests and coverage 2023-04-12 20:21:42 +02:00
Maiko Bossuyt
280647ff38 Update data_ingestion.py
move the search_file function inside the data_ingestion script
add memory initialisation argument
add overlap argument
add chunk max_length argument
2023-04-12 20:19:36 +02:00
Maiko Bossuyt
4465486ea3 Update file_operations.py
move the search_file function inside the data_ingestion script
2023-04-12 20:19:27 +02:00
Richard Beales
f9d8f728fa Merge pull request #981 from fabricehong/feat_log-activity-and-error-in-files-3
logging activity and error in log files in addition to the console - attempt 2
2023-04-12 19:14:05 +01:00
cs0lar
530894608b added support of API key based auth 2023-04-12 19:09:52 +01:00
Fabrice Hong
9f8b9db7bb fix(global): fix wrong calls 2023-04-12 20:08:47 +02:00
cs0lar
b7d0cc3b24 removed the extra class property 2023-04-12 19:00:30 +01:00
Fabrice Hong
0f3c85335c fix(logger): fix file handler not outputing DEBUG 2023-04-12 19:57:22 +02:00
Fabrice Hong
158c576a87 refactor(logger): rename the typewriter log function from 'log' to 'typewriter_log' 2023-04-12 19:57:17 +02:00
cs0lar
35ecd95c49 removed unnecessary flush() 2023-04-12 18:56:42 +01:00
cs0lar
415c1cb4b5 fixed quotes 2023-04-12 18:55:34 +01:00
Fabrice Hong
862d44ea39 fix(logger): fix typewriter simulation doesn't work well with Typing spinner 2023-04-12 19:54:03 +02:00
cs0lar
b9a4f97790 resolved latest conflicts 2023-04-12 18:52:06 +01:00
Maiko Bossuyt
8faa6ef949 Create data_ingestion.py
This script is use when we want to seed Auto-GPT memory with one or multiple documents.

The document are read, split into chunks and store in the memory.
2023-04-12 19:47:51 +02:00
Maiko Bossuyt
c91117616f Update file_operations.py
revert change in import as we don't need them
2023-04-12 19:46:58 +02:00
Maiko Bossuyt
7975c184a5 Update .gitignore
add new log file to gitignore
2023-04-12 19:46:39 +02:00
Fabrice Hong
1f5049a9c4 doc(logger): added class documentation 2023-04-12 19:41:11 +02:00
Fabrice Hong
43c006d71c feat(global): errors logs are logged as debug level and activated with program argument 'debug' 2023-04-12 19:41:08 +02:00
Maiko Bossuyt
137751f95c Merge branch 'Torantulino:master' into add_ingest_documents_script 2023-04-12 19:36:40 +02:00
Richard Beales
0e004f5c14 Merge pull request #697 from Wladastic/fix-user-feedback-json-error
fix json parser
2023-04-12 18:22:47 +01:00
lekapsy
7729f198d4 Merge branch 'master' into patch-1 2023-04-12 19:17:34 +02:00
Richard Beales
0270696616 Merge pull request #865 from drikusroor/add-unit-tests-workflow
Add unit tests workflow
2023-04-12 18:15:40 +01:00
Richard Beales
364e2a4ba1 Merge branch 'master' into add-unit-tests-workflow 2023-04-12 18:14:37 +01:00
Maiko Bossuyt
d7609b3095 Merge branch 'add_ingest_documents_script' of https://github.com/maiko/Auto-GPT into add_ingest_documents_script 2023-04-12 19:13:26 +02:00
Maiko Bossuyt
0dddc94bda Add file ingestion methode in file_operations.py
Add the following functions to ingest data into memory before Auto-GPT run.

- split_file: given a content, split it in chunks of max_length with (or without) a specified overlap

- ingest_file: read a file, use split_file to split it in chunks and load each chunk in memory

- ingest_directory: ingest all files in a directory in memory
2023-04-12 19:13:04 +02:00
Richard Beales
9c9758c720 Merge pull request #700 from Rokniel/azure-deployment-additions
Add required env parameters for azure usage
2023-04-12 18:08:54 +01:00
Richard Beales
c98471e333 Merge pull request #685 from STRML/fix/json-parsing
Fix various JSON input bugs
2023-04-12 18:03:34 +01:00
cs0lar
67b84b5811 added client install 2023-04-12 17:54:59 +01:00
lekapsy
d237cf3d87 Improve .env File Organization, Readability, and Documentation
This pull request aims to enhance the organization, readability, and understanding of the .env.template file for users when they modify the settings. The changes include organizing the file in a tree-like structure with appropriate comments, providing clear guidance for users about the purpose of each variable, their possible values, and default settings when applicable.

As a user with no prior knowledge of best practices of contributing to a project / .env.template file documentation, I took the liberty to make changes to the file based on what I would have liked to have seen when I first encountered it. My goal was to include every configurable option for ease of use and better understanding of how the code works.

The key improvements made in this pull request are:

1. Grouping related variables under appropriate headers for better organization and ease of navigation.
2. Adding informative comments for each variable to help users understand their purpose and possible values.
3. Including default values in the comments to inform users of the consequences of not providing a specific value for a variable, allowing them to make 
    informed decisions when configuring the application.
4. Formatting the file consistently for better readability.

These changes will enhance user experience by simplifying the configuration process and reducing potential confusion. Users can quickly and easily configure the application without having to search through the code to determine default values or understand the relationship between various settings. Additionally, well-organized code and documentation can lead to fewer issues and misunderstandings, saving time for both users and maintainers of the project.

Please review these changes and let me know if you have any questions or suggestions for further improvement so I can make any necessary adjustments.
2023-04-12 18:54:10 +02:00
Bernhard Mueller
940772b502 Merge branch 'shellcommands' of github.com:muellerberndt/Auto-GPT into shellcommands 2023-04-12 23:47:16 +07:00
Bernhard Mueller
affe77e18c Call subprocess.run with shell=True 2023-04-12 23:46:55 +07:00
Richard Beales
a7176cd229 Merge pull request #215 from slavakurilyak/security-and-robustness-improvements
Improve Security and Robustness in browse.py
2023-04-12 17:37:44 +01:00
Bernhard Mueller
9e8d35277b Update scripts/commands.py
Co-authored-by: Peter Stalman <sarkedev@gmail.com>
2023-04-12 23:32:17 +07:00
Bernhard Mueller
cc9723c26e Make chdir code more robust 2023-04-12 23:30:35 +07:00
cs0lar
e3aea6d6c4 added weaviate embedded section in README 2023-04-12 17:21:37 +01:00
Bernhard Mueller
15dffed6e5 Merge branch 'master' of github.com:Torantulino/Auto-GPT into shellcommands 2023-04-12 23:15:31 +07:00
Maiko Bossuyt
8baa0769b1 Update config.py 2023-04-12 18:03:59 +02:00
Maiko Bossuyt
a615e57061 Revert "Update main.py"
This reverts commit c785352ed2.
2023-04-12 18:00:17 +02:00
profound
c5f0cb3d3f fix read config file encoding that broke Chinese 2023-04-12 23:38:30 +08:00
roby.parapat
730fbf591f pull image if it's not found locally 2023-04-12 22:15:22 +07:00
Maiko Bossuyt
5bb551db95 add the url variable in the get_text_summary function to pass it to the memory
By sending the url along when calling browse.summarize_text, we can then add it along the chunk in memory.
2023-04-12 16:42:14 +02:00
Maiko Bossuyt
b20c0117c5 Add memory management to browse.py
- Change the way User-Agent is handle when calling requests to browse website

- Add chunk to memory before and after summary. We do not save the "summary of summaries" as this wasn't performing great and caused noise when the "question" couldn't be answered.

- Use the newly added config parameters for max_length and max_token
2023-04-12 16:38:49 +02:00
Maiko Bossuyt
c986e87135 Edit config Class to manage browse_website command chunk size and summary size
I added two new config parameters:

- browse_chunk_max_length: define the max_length of a chunk being sent to the memory and to FAST_LLM_MODEL for summarizing

- browse_summary_max_token: define the max_token passed to the model use for summary creation. Changing this can help with complex subject, allowing the agent to be more verbose in its attemps to summarize the chunk and the chunks summary.

I've also edited the way the user_agent is handle.
2023-04-12 16:36:27 +02:00