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

Sitemap Loader: 413 Content Too Large #185

Closed
kangfenmao opened this issue Dec 20, 2024 · 1 comment
Closed

Sitemap Loader: 413 Content Too Large #185

kangfenmao opened this issue Dec 20, 2024 · 1 comment
Assignees

Comments

@kangfenmao
Copy link

kangfenmao commented Dec 20, 2024

🐛 Describe the bug

Sitemap URL: https://llm-tools.mintlify.app/sitemap.xml

chunks size too large

Sitemap URL: https://kangfenmao.com/sitemap.xml

This can work well


Is there a way to embed on each website once?

OpenAI.makeStatusError APIError: 413 status code (no body)
@kangfenmao
Copy link
Author

kangfenmao commented Dec 23, 2024

new RAGApplicationBuilder()
      .setModel('NO_MODEL')
      .setEmbeddingModel(
        new OpenAiEmbeddings({
          model,
          apiKey,
          configuration: { baseURL },
          dimensions: 1024,
          batchSize: 10 // <------ Add this line
        })
      )
      .setVectorDatabase(new LibSqlDb({ path: path.join(this.storageDir, id) }))
      .build()

Fixed with change batchSize to 10

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

2 participants