-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
No input for the question: "Enter a query:" NEVER shows #321
Comments
Are you using IDE or directly running from command prompt? |
Directly from command-prompt. LLM model is in "C:\privateGPT-main\models\ggml-gpt4all-j-v1.3-groovy.bin" and these 2 scripts are in "C:\privateGPT-main". The embedding model was automatic download (via 1st start of ingest.py script) in "C:\Users\Angel.cache\torch\sentence_transformers\sentence-transformers_all-MiniLM-L6-v2\pytorch_model.bin" |
".env" file contains: |
When i use the absolute path for embedding model: the following error occurs: OSError: It looks like the config file at 'C:\Users\Angel.cache\torch\sentence_transformers\sentence-transformers_all-MiniLM-L6-v2\pytorch_model.bin' is not a valid JSON file. |
@AngelTs Your |
I started without problems oobabooga with many different models, even with 6B, AUTOMATIC1111, Dolly ... |
Maybe they use the GPU or something? Or some online API? In any event, if you think there's still an issue, it's better if you close this one and comment in the one already open to avoid creating unnecessary duplicate issues. |
I did as followed. I created another subfolder like models for sentence-transformers,and put all files here.then it worked PERSIST_DIRECTORY=db but Im getting response as followed. Using embedded DuckDB with persistence: data will be stored in: db Enter a query: can you summarize text with 10 sentences? |
I receive the error -1073741795, so the problem is in my CPU - it doesn't support AVX and AVX2 instructions. 1.Downgrade to TensorFlow 1.5 - it is almost impossible to work, because this version use old python, so very possible all other installed libraries in the new version to python to be impossible to install on this old version of python!; I select the thie last option and here is my example python script (hope to help to another solo soldier): from langchain.embeddings.huggingface import HuggingFaceEmbeddings from llama_index.prompts.prompts import SimpleInputPrompt query_wrapper_prompt = SimpleInputPrompt( import torch hf_predictor = HuggingFaceLLMPredictor( embed_model = LangchainEmbedding(HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")) service_context = ServiceContext.from_defaults(chunk_size_limit=512, llm_predictor=hf_predictor, embed_model=embed_model) index = GPTVectorStoreIndex.from_documents(documents, service_context=service_context) query_engine = index.as_query_engine(streaming=True, similarity_top_k=3, service_context=service_context) =>BUT the following error occured: I think it is time to me to flag game over. Cheers! |
C:\privateGPT-main>python ingest.py
Loading documents from source_documents
Loaded 1 documents from source_documents
Split into 90 chunks of text (max. 500 characters each)
Using embedded DuckDB with persistence: data will be stored in: db
C:\privateGPT-main>python privateGPT.py
Using embedded DuckDB with persistence: data will be stored in: db
C:\privateGPT-main>
The text was updated successfully, but these errors were encountered: