Skip to content

[Bug]: <title> Failed to get encoding for cl100k_base when getting num_tokens_from_string #660

@Anthonyfhd

Description

@Anthonyfhd

Describe the bug

INFO: Generating entity extraction prompt...
Failed to get encoding for cl100k_base when getting num_tokens_from_string. Fall back to default encoding cl100k_base

Steps to reproduce

python -m graphrag.prompt_tune --root . --domain "Chinese law and policy about Management Measures and Regulations" --language Chinese --chunk-size 300 --output prompt_zh

Expected Behavior

No response

GraphRAG Config Used

No response

Logs and screenshots

No response

Additional Information

  • GraphRAG Version:
  • Operating System:
  • Python Version:
  • Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    community_supportIssue handled by community members

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions