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

About language #371

Closed
mc112611 opened this issue Jul 5, 2024 · 6 comments
Closed

About language #371

mc112611 opened this issue Jul 5, 2024 · 6 comments
Labels
community_support Issue handled by community members

Comments

@mc112611
Copy link

mc112611 commented Jul 5, 2024

what language does GraphRAG support? Can I use Japanese document to do RAG?

@eyast
Copy link

eyast commented Jul 5, 2024

I believe so. GraphRAG makes calls to an OpenAI or AzureOpenAI LLM, and they support Japanese in their tokenizers. Keep in mind that the instructions (and examples) provided to the LLM to do entity extraction and summarization are all in English. You might want to modify these prompts.

For example, when you intiate the indexer, you will see prompts in prompts\entity_extraction.txt. Line 20 says "Return output in English". You might want to modify this so that the result is returned in Japanese.

@mc112611
Copy link
Author

mc112611 commented Jul 5, 2024

I believe so. GraphRAG makes calls to an OpenAI or AzureOpenAI LLM, and they support Japanese in their tokenizers. Keep in mind that the instructions (and examples) provided to the LLM to do entity extraction and summarization are all in English. You might want to modify these prompts.

For example, when you intiate the indexer, you will see prompts in prompts\entity_extraction.txt. Line 20 says "Return output in English". You might want to modify this so that the result is returned in Japanese.

Thank you so much , hope this project will support local LLM, not only chatGPT。

@jgbradley1
Copy link
Collaborator

Thank you so much , hope this project will support local LLM, not only chatGPT。

We welcome contributions from the community 😉 .

@natoverse
Copy link
Collaborator

Consolidating language support issues here: #696

@natoverse natoverse closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
@natoverse natoverse added the community_support Issue handled by community members label Jul 25, 2024
@ahouse73
Copy link

Thank you so much , hope this project will support local LLM, not only chatGPT。

You can use local LLMs, Ollama supports the OpenAI api specification. If you set the base url of the settings.yaml to the Ollama api url you can use the model.

Example for the LLM:

llm:
  api_key: None
  type: openai_chat 
  model: mistral:latest
  model_supports_json: true
  api_base: http://localhost:11434/v1

@mc112611
Copy link
Author

非常感谢,希望这个项目将支持当地的LLM,而不仅仅是chatGPT .

你可以使用本地的LLM,Ollama支持OpenAI api规范。如果您设置了settings.yaml到Ollama api url,您可以使用该模型。

LLM的示例:

llm:
  api_key: None
  type: openai_chat 
  model: mistral:latest
  model_supports_json: true
  api_base: http://localhost:11434/v1

This is very helpful. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_support Issue handled by community members
Projects
None yet
Development

No branches or pull requests

5 participants