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

[Bug]: Embedding error in file parsing #1835

Closed
1 task done
RELmon25 opened this issue Aug 6, 2024 · 5 comments
Closed
1 task done

[Bug]: Embedding error in file parsing #1835

RELmon25 opened this issue Aug 6, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@RELmon25
Copy link

RELmon25 commented Aug 6, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

main

Commit ID

unknown

Other environment information

macOS with chip Apple M2

Actual behavior

  1. Customize user_default_llm in service_conf.yaml:
    factory: 'OpenAI'
    api_key: MY_API_KEY
  2. Build Docker images and start up the server
  3. Log in to RAGFlow
  4. Set up knowledge base with gpt-4o as the embedding model
  5. Upload file to knowledge base and start parsing

SUCCESS in parsing status but shows an embedding error:

[ERROR]Embedding error:Error code: 403 - {'error': {'message': 'You are not allowed to generate embeddings from this model', 'type': 'invalid_request_error', 'param': None, 'code': None}}

image

Tried again after configuring OpenAI API key on the Model Providers page. The same error happened.

Expected behavior

Succesful parsing.

Steps to reproduce

See Actual behavior.

Additional information

Error message:
[ERROR]Embedding error:Error code: 403 - {'error': {'message': 'You are not allowed to generate embeddings from this model', 'type': 'invalid_request_error', 'param': None, 'code': None}}

I've verified that my OpenAI API key works and has credit.

@RELmon25 RELmon25 added the bug Something isn't working label Aug 6, 2024
@RELmon25 RELmon25 changed the title [Bug]: [Bug]: Embedding error in file parsing Aug 6, 2024
@TeresaUscanga
Copy link

Same issue.

@euscanga-krasamo
Copy link

Updates?

@LloydNA
Copy link

LloydNA commented Aug 6, 2024

yeah, same issue here :/, with M1 chip

cike8899 added a commit to cike8899/ragflow that referenced this issue Aug 7, 2024
KevinHuSh pushed a commit that referenced this issue Aug 7, 2024
### What problem does this PR solve?

fix: Embedding error in file parsing #1835

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
@KevinHuSh
Copy link
Collaborator

gpt-4o is not a embedding model.
All the non-embedding models have been filtered out in knowledge base setting.

@RELmon25
Copy link
Author

RELmon25 commented Aug 7, 2024

Thanks!

Halfknow pushed a commit to Halfknow/ragflow that referenced this issue Nov 11, 2024
### What problem does this PR solve?

fix: Embedding error in file parsing infiniflow#1835

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants