Furrmidable-Crew / schrodinger_cat

Plugin for the Cheshire Cat AI framework
11 stars 1 forks source link

error for PromptTemplate __root__ #1

Open ElioErrico opened 1 year ago

ElioErrico commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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