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

Read Document Tool #72

Open
rafacost opened this issue Jun 5, 2023 · 5 comments
Open

Read Document Tool #72

rafacost opened this issue Jun 5, 2023 · 5 comments

Comments

@rafacost
Copy link

rafacost commented Jun 5, 2023

Hi! I created the json file with the field "title" and also "content", but the the script can't find the document. I tried to save on the main folder, tried to append to the config.json. I just cant figure out how to read a file.
Any help is appreciated.
Thnx

@MoHayat
Copy link

MoHayat commented Jun 8, 2023

what does the path and body look like?

@rafacost
Copy link
Author

rafacost commented Jun 8, 2023

Hi!
the path (i saved on the same folder of the config.json file) and the body is a simple text lorem ipsum example. really just to test how to load a simple file

@MoHayat
Copy link

MoHayat commented Jun 8, 2023

just to clarify, are you trying to make your own config.json file? Or is this a new file in the same location that you'd like to use in your code

@rafacost
Copy link
Author

rafacost commented Jun 8, 2023

Sure I am tweaking my config.json so my GPteam does the tasks that I need. But what I would like to know is how one uses functions like search the web with serapi, how to save a new document with save_document and finally how to read_document. How do we call this functions on the definition of the agents?

@joshsny
Copy link
Contributor

joshsny commented Jun 19, 2023

Hey @rafacost, currently this does not work as documents are stored in the local document database. It's a good idea for this to be changed so you can add custom files though. I'll look into doing this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants