Skip to content

MistralAI tokenizer warning persists despite setting HF_TOKEN environment variable #116

@Somnathumapathi

Description

@Somnathumapathi
Image

When running python ingest.py:

Despite properly setting the HF_TOKEN environment variable, the following warning still appears when running the document ingestion script:

/Users/somnathumapathi/my_projects/aifaq/src/mvt/venv/lib/python3.13/site-packages/langchain_mistralai/embeddings.py:181: UserWarning: Could not download mistral tokenizer from Huggingface for calculating batch sizes. Set a Huggingface token via the HF_TOKEN environment variable to download the real tokenizer. Falling back to a dummy tokenizer that useslen().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions