nrl-ai / llama-assistant

AI-powered assistant to help you with your daily tasks, powered by Llama 3.2. It can recognize your voice, process natural language, and perform various actions based on your commands: summarizing text, rephasing sentences, answering questions, writing emails, and more.
https://llama-assistant.nrl.ai/
GNU General Public License v3.0
426 stars 33 forks source link

LLamaIndex Integration #12

Closed gallegi closed 23 hours ago

gallegi commented 1 week ago
vietanhdev commented 6 days ago

Error due to missing package:

 File "/opt/homebrew/Caskroom/miniforge/base/envs/la/lib/python3.11/site-packages/llama_index/core/readers/file/base.py", line 67, in _try_loading_included_file_formats
    raise ImportError("`llama-index-readers-file` package not found")
ImportError: `llama-index-readers-file` package not found
vietanhdev commented 6 days ago

Error while inference:

 File "/opt/homebrew/Caskroom/miniforge/base/envs/la/lib/python3.11/site-packages/llama_cpp/llama_chat_format.py", line 289, in _convert_text_completion_chunks_to_chat
    for i, chunk in enumerate(chunks):
  File "/opt/homebrew/Caskroom/miniforge/base/envs/la/lib/python3.11/site-packages/llama_cpp/llama.py", line 1269, in _create_completion
    raise ValueError(
ValueError: Requested tokens (2387) exceed context window of 2048

File: sockets.txt

Question:

 Is socket supported in AnyLearning?

Fix:

This works when I update all context length (2048) to 4096. The answer was based on the content of the text file. Good job!

TODO: Make it configurable.

vietanhdev commented 6 days ago

Implementing https://github.com/nrl-ai/llama-assistant/issues/13.

vietanhdev commented 23 hours ago

LGTM.