Skip to content

LAMBDAPROMPT_BACKEND = StarCoder causes runtime ValidationError on .sketch.ask #36

@gilgamesh7

Description

@gilgamesh7

Hello,

I am using these in .env and load_dotenv() to load these into the runtime

LAMBDAPROMPT_BACKEND=StarCoder
SKETCH_USE_REMOTE_LAMBDAPROMPT='False'
HF_ACCESS_TOKEN=(my token)

This results in the below ValidationError.
This does work when I do not use the local copy.

Any ideas ?

Thank you !

Python 3.10.0
sketch==0.5.2


ValidationError Traceback (most recent call last)
Cell In[27], line 1
----> 1 df.sketch.ask("What is this dataset about?")
...
[329]def ask(self, question, call_display=True):
--> [330] result = call_prompt_on_dataframe(self._obj, ask_from_parts, question=question)
...
ValidationError: 1 validation error for Parameters
stop
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions