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

/generate issue wasn't able to index #359

Closed
Niko-La opened this issue Aug 25, 2023 · 4 comments · Fixed by #407
Closed

/generate issue wasn't able to index #359

Niko-La opened this issue Aug 25, 2023 · 4 comments · Fixed by #407
Labels
bug Something isn't working
Milestone

Comments

@Niko-La
Copy link

Niko-La commented Aug 25, 2023

lLLM model working fine in cell but when using the Jupyternaut to generate a notebook get following message

Sorry, something went wrong and I wasn't able to index that path.

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/jupyter_ai/chat_handlers/base.py", line 38, in process_message
    await self._process_message(message)
  File "/usr/local/lib/python3.9/site-packages/jupyter_ai/chat_handlers/generate.py", line 236, in _process_message
    outline = await generate_outline(prompt, llm=self.llm, verbose=True)
  File "/usr/local/lib/python3.9/site-packages/jupyter_ai/chat_handlers/generate.py", line 64, in generate_outline
    return json.loads(outline)
  File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 26 column 1 (char 434)

@Niko-La Niko-La added the bug Something isn't working label Aug 25, 2023
@welcome
Copy link

welcome bot commented Aug 25, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@Niko-La Niko-La changed the title /generate issue wasn't abl to index /generate issue wasn't able to index Aug 25, 2023
@rhlarora84
Copy link

Receiving the same error on Jupyterlab 4.0.5
image

@JasonWeill
Copy link
Collaborator

@Niko-La @rhlarora84 Which language models are you using in the chat UI?

@JasonWeill JasonWeill added the status:Needs Info Further information is requested label Aug 29, 2023
@Niko-La
Copy link
Author

Niko-La commented Aug 29, 2023

@JasonWeill openai chatgpt. Was able to get cell response fine with it.

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.

3 participants