Giter Site home page Giter Site logo

Comments (5)

derricktan23 avatar derricktan23 commented on August 23, 2024

I followed the following setup steps

  1. git clone https://github.com/AllAboutAI-YT/easy-local-rag.git
  2. cd easy-local-rag
  3. pip install -r requirements.txt
  4. Install Ollama (https://ollama.com/download)
  5. ollama pull llama3 (etc)
  6. ollama pull mxbai-embed-large
  7. ollama pull mistral
  8. python upload.py

from easy-local-rag.

AllAboutAI-YT avatar AllAboutAI-YT commented on August 23, 2024

hello! strange, and you have uploaded context to be embedding in vault.txt?

from easy-local-rag.

extremeakim avatar extremeakim commented on August 23, 2024

PS D:\VM\AI\easy-local-rag> python .\localrag.py
Parsing command-line arguments...
Initializing Ollama API client...
Loading vault content...
Generating embeddings for the vault content...

US President Joe Biden has praised American forces who he said "helped Israel take down nearly all" the drones and missiles launched by Iran on Sunday .In a statement, he said the US had moved aircraft and warships to the region before the unprecedented attack."I condemn these attacks in the strongest possible terms," he added.Israel said Iran launched hundreds of drones and missiles in its direction, the first time it has attacked Israel directly from its own territory .It said the "vast majority" were intercepted, but there were a small number of hits including at an IDF base in southern Israel.At least one person, reported to be a young girl, was injured.Iran earlier warned that Israel would be "punished" for a strike on its consulate in Syria on 1 April, which killed seven Iranian officers including a top commander .Israel has not confirmed or denied whether it was responsible.

Traceback (most recent call last):
File "D:\VM\AI\easy-local-rag\localrag.py", line 137, in
response = ollama.embeddings(model='mxbai-embed-large', prompt=content)
File "C:\Users\Akim\AppData\Local\Programs\Python\Python39\lib\site-packages\ollama_client.py", line 198, in embeddings
return self._request(
File "C:\Users\Akim\AppData\Local\Programs\Python\Python39\lib\site-packages\ollama_client.py", line 73, in _request
raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError: failed to generate embedding
PS D:\VM\AI\easy-local-rag>

same problem here, yes i have context in the vault file.
works fine if the vault file is empty... but its empty lol

from easy-local-rag.

vitorcalvi avatar vitorcalvi commented on August 23, 2024

same here... works when the vault is empty
Will figure out to fix it, paste it here

python3 localrag.py
Parsing command-line arguments...
Initializing Ollama API client...
Loading vault content...
Generating embeddings for the vault content...
Converting embeddings to tensor...
Embeddings for each line in the vault:
tensor([])
Starting conversation loop...
Ask a query about your documents (or type 'quit' to exit):

from easy-local-rag.

vitorcalvi avatar vitorcalvi commented on August 23, 2024

PS D:\VM\AI\easy-local-rag> python .\localrag.py Parsing command-line arguments... Initializing Ollama API client... Loading vault content... Generating embeddings for the vault content...

US President Joe Biden has praised American forces who he said "helped Israel take down nearly all" the drones and missiles launched by Iran on Sunday .In a statement, he said the US had moved aircraft and warships to the region before the unprecedented attack."I condemn these attacks in the strongest possible terms," he added.Israel said Iran launched hundreds of drones and missiles in its direction, the first time it has attacked Israel directly from its own territory .It said the "vast majority" were intercepted, but there were a small number of hits including at an IDF base in southern Israel.At least one person, reported to be a young girl, was injured.Iran earlier warned that Israel would be "punished" for a strike on its consulate in Syria on 1 April, which killed seven Iranian officers including a top commander .Israel has not confirmed or denied whether it was responsible.

Traceback (most recent call last): File "D:\VM\AI\easy-local-rag\localrag.py", line 137, in response = ollama.embeddings(model='mxbai-embed-large', prompt=content) File "C:\Users\Akim\AppData\Local\Programs\Python\Python39\lib\site-packages\ollama_client.py", line 198, in embeddings return self._request( File "C:\Users\Akim\AppData\Local\Programs\Python\Python39\lib\site-packages\ollama_client.py", line 73, in _request raise ResponseError(e.response.text, e.response.status_code) from None ollama._types.ResponseError: failed to generate embedding PS D:\VM\AI\easy-local-rag>

same problem here, yes i have context in the vault file. works fine if the vault file is empty... but its empty lol

The problem is the input data. If you upload, ex: well structured json file, its works like charm.
For instance (JSON): https://gist.github.com/tanveery/4ac939d2ad27954da4c8db13e10ef7bd

from easy-local-rag.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.