Comments (5)
I followed the following setup steps
- git clone https://github.com/AllAboutAI-YT/easy-local-rag.git
- cd easy-local-rag
- pip install -r requirements.txt
- Install Ollama (https://ollama.com/download)
- ollama pull llama3 (etc)
- ollama pull mxbai-embed-large
- ollama pull mistral
- python upload.py
from easy-local-rag.
hello! strange, and you have uploaded context to be embedding in vault.txt?
from easy-local-rag.
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.
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.
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)
- cannot import ollama module HOT 3
- implement encoding caching Saves time and energy HOT 1
- hangs when generating embeddings on supplied vault.txt HOT 4
- failed to generate embedding HOT 4
- requirements.txt contains wrong "yaml" HOT 1
- Full mailbox in Vector DB HOT 3
- python localrag.py with error shmdll
- Feature request: ability to pass the desired ollama model from the command line HOT 2
- Feature request: add support for follow-up prompts within the same context session HOT 2
- embeddings HOT 1
- Feature request: using local embeding models in ollama HOT 2
- Embeddings are not generated HOT 3
- response repeatedly fed back into the system in a loop HOT 1
- some contribution i guess HOT 1
- Failed to generate embedding HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easy-local-rag.