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

Do you have to run Azure Embedding Service per document Page? #311

Open
maximuskh opened this issue Apr 11, 2024 · 1 comment
Open

Do you have to run Azure Embedding Service per document Page? #311

maximuskh opened this issue Apr 11, 2024 · 1 comment

Comments

@maximuskh
Copy link

As I was reading through the history, I noticed that somewhere down the line, the code AzureSearchEmbedService has been updated only to call Document Intelligence per pages in the document while it used to call Document Intelligence for the whole document and use a method named BlobNameFromFilePage to decide which page is the created index record relates to?

Is there any reason why this has been updated to run per page instead of the whole document? isn't this change make it more costly to embed documents?

Whare are the pros and cons of each approach?

I appreciate if you can provide me with some information

@Coruscate5
Copy link

Source doc is still included in the metadata - If you choose to use Vector (you should) as a search strategy for RAG, then the embedding model generates 1536 vectors, regardless of content length. So, for both specificity and search optimization, it makes sense to split potential search results into things that would actually be responsive AND not immediately exceed the model's context window

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