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

Local search work but global search not. And running index_app.py report an error no attribute 'rstrip' #80

Open
goodmaney opened this issue Aug 3, 2024 · 2 comments

Comments

@goodmaney
Copy link

goodmaney commented Aug 3, 2024

the app.py report: Error parsing query response: Expecting value: line 1 column 1 (char 0).

Then I try using the command to global search ,it report me :
Error parsing search response json.
...........
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) .

And

Run index_app.py report an error no attribute 'rstrip'
I edit the .env file. The app.py can run .but the index_app.py report :AttributeError: 'NoneType' object has no attribute 'rstrip'.
Then I change the LLM_API_BASE EMBEDDINGS_API_BASE in code, not work

I use xinference not ollama. LLM is llama3.1 8B

@shaoqing404
Copy link

你可以找到初始化 global_search_engine = GlobalSearch(
llm=llm,
context_builder=global_context_builder,
token_encoder=token_encoder,
max_data_tokens=12000,
map_llm_params=map_llm_params,
reduce_llm_params=reduce_llm_params,
allow_general_knowledge=False,
json_mode=True,
context_builder_params=global_context_builder_params,
concurrent_coroutines=32,
response_type="multiple paragraphs",
)的部分,将json_mode 改为False

@Tovi163
Copy link

Tovi163 commented Aug 11, 2024

the app.py report: Error parsing query response: Expecting value: line 1 column 1 (char 0).

Then I try using the command to global search ,it report me : Error parsing search response json. ........... json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) .

And

Run index_app.py report an error no attribute 'rstrip' I edit the .env file. The app.py can run .but the index_app.py report :AttributeError: 'NoneType' object has no attribute 'rstrip'. Then I change the LLM_API_BASE EMBEDDINGS_API_BASE in code, not work

I use xinference not ollama. LLM is llama3.1 8B

@goodmaney try "direct query" first, to check if graphrag is ok with xinference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants