approximatelabs / sketch

AI code-writing assistant that understands data content
MIT License
2.21k stars 112 forks source link

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

Open gilgamesh7 opened 2 months ago

gilgamesh7 commented 2 months ago

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