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

[Bug]: rag_handler pydantic validation errors #9293

Closed
dusvyat opened this issue Jun 5, 2024 · 0 comments · Fixed by #9292
Closed

[Bug]: rag_handler pydantic validation errors #9293

dusvyat opened this issue Jun 5, 2024 · 0 comments · Fixed by #9292
Assignees
Labels
bug Something isn't working

Comments

@dusvyat
Copy link
Contributor

dusvyat commented Jun 5, 2024

Short description of current behavior

DROP ML_ENGINE IF EXISTS rag_engine;
CREATE ML_ENGINE rag_engine
FROM rag
USING
    openai_api_key = 'our open api key';

DROP MODEL mindsdb_rag_model;
CREATE MODEL mindsdb_rag_model
predict answer
USING
   engine = "rag_engine",
   llm_type = "openai",
   url='https://docs.mindsdb.com/what-is-mindsdb',
   vector_store_folder_name = 'db_connection',
   input_column = 'question'; 

DESCRIBE mindsdb_rag_model;
SELECT *
FROM mindsdb_rag_model
WHERE question = 'What ML use cases does MindsDB support?';

We are getting the following error :

mindsdb.integrations.libs.ml_exec_base.MLEngineException: [rag_engine/mindsdb_rag_model]: TypeError: 'pydantic_core._pydantic_core.ValidationInfo' object is not subscriptable

Video or screenshots

No response

Expected behavior

No response

How to reproduce the error

No response

Anything else?

No response

@dusvyat dusvyat added the bug Something isn't working label Jun 5, 2024
@dusvyat dusvyat self-assigned this Jun 5, 2024
@dusvyat dusvyat linked a pull request Jun 5, 2024 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant