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

error for PromptTemplate __root__ #1

Open
ElioErrico opened this issue Sep 18, 2023 · 3 comments
Open

error for PromptTemplate __root__ #1

ElioErrico opened this issue Sep 18, 2023 · 3 comments

Comments

@ElioErrico
Copy link

Hello Nicola,

is this plug in working with the cashire cat?
this is what I did:

  1. I copied al the repository in cheshire-cat\core\cat\plugins folder.
  2. I copied your requirements on pyproject.toml dependencies
  3. I did doccker-compose down
  4. I did docker-compose build --no-cache
  5. I did doccker-compose up
  6. I enabled your plug in
  7. I typed a normal query like "find me 3 articles about covid" and it gave me this error

Error:
1 validation error for PromptTemplate root Invalid prompt schema; check for mismatched or missing input parameters. 'agent_scratchpad' (type=value_error)

Im trying to understand how to use the cat to start making some plug in and I was starting from your documentation like this 👍 https://medium.com/mad-chatter-tea-party/the-cheshire-cat-build-you-ai-assistant-with-any-large-language-model-997ec70a0896
and the schrodinger_cat

let me know if you can help me.

@nicola-corbellini
Copy link
Member

nicola-corbellini commented Sep 19, 2023

Hi Elio, thank you for your interest!
Unfortunately, this plugin is outdated and also the medium article refers to an old version of the Cat. Sorry for this.

If you're interested in resources to start writing a plugin you can find some on the documentation or on the website.

If you're interested in this specific plugin, I will try to update it asap.

@ElioErrico
Copy link
Author

For sure your plug in is really interesting.

By the way my goal is to try to learn how to do a plug in order to load on the declarative memory documents starting from the OS or/and websites through Python code.

So I was starting learning also from your plugin which do what described above.

Do you know any working plug in is doing what I described?
Can you give me some tips?

@nicola-corbellini
Copy link
Member

Currently, I have no plugin in mind doing this.

Actually, this depends on you specific use case. If you want to upload docs while chatting with the Cat, you could follow the strategy and copy the code coming from my plugin.

If you want to upload documents from "outside" the Cat, e.g. from a custom client or just a python script, you could use the python API client. This is a client to interact with the Cat's endpoints, so you can ingest document directly in the Rabbit Hole of a running Cat.
If you prefer, it is available also in Typescript

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

2 participants