Retrieval enhancement and evaluation
Put together answers, sources and testable quality standards.
- Readable articles
- 42
- System Chapters
- 2
Linking concepts with system chapters.
Read the whole thing first
- The evidence chain for RAG: recall, rearrange, answer and quote
Starting with a slice of a document, a manual search indicator and vector order explain why evidence is lost between recall, cut, generation and reference.
- One answer is not enough: evaluation, Judge and duplicate operation reliability
Fix data, generation and scoring conditions; calculate pass@k and pass^k by hand, separating answer quality, process constraints, judge error and running costs.
Start with definitions, symbols and minimum examples.
Introduction
- Document block cut: length, overlap and necessary evidentiary boundary
The search system usually does not make the entire long document a candidate but a small, identifiable block.
- PDF Parse: Text read is not the same as table relationship retained
PDF often saves page drawing information, and the text extraction order does not necessarily correspond to the human eye reading order.
- Cosine and internal search: whether or not the vector length is involved in sorting
The internal build-up is influenced by both direction and length, and cosine similarities are unicoded and mainly compared in direction.
- Multiple search search search: expanded expression and increased de-registering and budgetary responsibilities
The same information needs can be expressed differently: abbreviations, full names, methodological names or mission descriptions.
- Dialogue Query Rewrite: Do not add conditions when completing the finger
The phrase “how it is assessed later” in the dialogue usually relies on the previous entity, and it is difficult to match it directly.
- Metadata filter: range is maintained before relevance is sorted
The metadata filter limits the language, date, document type, permission or area, and then retrieves it in the permitted collection.
- Document version and block ID: allow old references to be returned to the original version
The papers will be revised, the web pages updated and the rule of slices changed.
- Proclaiming quote: Links exist and support the word "neighbour"
The references in the answer should support specific ideas rather than refer only to papers that are similar to the subject matter.
- Source old and old: Dates cannot replace evidence level
The most recent web page is not necessarily more appropriate to support the underlying definition than the old paper, which does not necessarily describe the current interface.
- Recall, Precision, Hit: Distribution of Retrieving Indicators
The search indicators need to be based on the number of relevant pools, candidate units and returns.
- No answer recognition: the answer will be denied and the time will be checked
The knowledge base does not contain all answers.
- Faithful and correct: the answer is still valid for the source itself
The answer is faithful to check whether the content generated is supported by the given evidence and whether the factual correctness of the content is consistent with the target world or with the true value of authority.
- RAG Delayed Budget: Parallel is not equal to all time-consuming directly added
Retrieval enhancements include the phases of coding, retrieval, re-allocation, contextual assembly and generation.
See the difference between reasoning, realization and methodology.
Step
- BM25: Why is the word frequency saturated and why is the length being normalized
The keyword search access problem coincides with the word or word in the document.
- Double encoding search: positive, negative and similar learning
Double encoder encodes the problems and documents separately so that they indicate that they can be calculated offline and indexed.
- Difficult case: paragraphs similar to but not supportive of the answer
The difficulty cases are close to the surface or semantics of the problem, but do not meet the criterion of actual relevance.
- RRF: How do different searcher rankings merge
The scale of the original fractions for keyword retrieval and dense retrieval varies and direct additions may lead to a system with a larger value.
- Document filtered HNSW: close neighbour recall and legal evidence overlay
The Tier Navigable Small World Index will be organized into multiple layers of near-neighbour maps.
- Cross-coding reordering: which candidates are the more detailed interactive
Cross-encoder joint reading of questions and candidate text, allowing the word to interact directly with the word to produce relevant fractions.
- Late interactive search: keep multiple token vectors matching
A single vector search presses the whole section into a single sign, while a later interaction retains several local vectors, allowing the different tokens in the question to find the best matching document location separately.
- HyDE: Hypothesis document is a search bridge, not evidence
Hypothetical document retrieval allows the model to generate a possible answer or description around the question and then encode it into a vector search for real information.
- MRR and nDCG: How to score position and hierarchy correlation
The search results must contain not only relevant materials but also essential evidence.
- Optimal context comparison: whether to search or generate error
An end-to-end error may result from missing information, retrieved missing recall, re-allocated, context cut-off or generated neglect.
- Model judges ' deviations: match location, length and self-resemblance
The model judges can quickly compare open answers, but it is not the true value of the discrepancy.
- Compromise evaluation: The margin for the same subject is more informative than the two stand-alone averages
When comparing the two systems, allowing them to answer the same set of questions and retaining the question-by-question results would reduce the interference with the differences in mission difficulty.
- pass@k versus pass^k: one success and every-attempt success have opposite trends
At least one success fits into a scenario with artificial options or cheap duplications, and on several successive occasions it is closer to reliable implementation requirements.
- Assessment of development leakage: the hint and rating rules are also drawn up
Even if the weight of the model has never been directly trained on the test, the developers repeatedly look at the test failure, modify the tips or search rules, and integrate the information gathered into the system.
- Earmarking and extrapolation: On average, it doesn't mean it's good in all fields
Research assistants face multiple fields, years, languages and document types.
- ECE: Post-box credit errors can also be affected by boxes
Calibration of the probability that the desired model will report is consistent with the true frequency of similar predictions.
- Selective answer: Risk and coverage
The system can answer only those parts of the question that it considers to be sufficient evidence, with the remainder being handed over to additional information or labour.
- Tightening of evidence: retention of conditions is more important than retention of keywords
When the context is inadequate, the search clips can be compressed, but the summary will lose information.
- Related and diverse: Can't all be the same paragraph rewrite
The previous candidates may be highly similar, even if they are reproduced in multiple copies of the same paper.
- Call back the little one, read the big one: how to keep the father and son track
Small segments are appropriate for matching specific issues, and larger parent paragraphs are suitable for retaining conditions and explanations.
- Graphical search: relationships can connect evidence and transmit extraction errors
Graphical searches organize entities, concepts and relationships into networks for multi-hop queries or global thematic aggregations.
- Multiple jump search: intermediate conclusions also need to be sourced
Some issues require the identification of the entity or condition before the next information can be retrieved, such as the identification of which data set the methodology uses and the search for the authorization of that data set.
- Structured Q & Answer: SQL Results also need to define denominators and time
Structured information can be obtained through query tools rather than purely textual similarities.
- Code retrieval: Versions, call relationships and tests are more important than similar function names
The code question and answer needs to find not only similar text, but also the actual implementation, configuration and testing of the current version.
- Increment index: add, modify and delete must be jointly maintained
The continuous knowledge base should not only add new elements, but also deal with revisions, deletions, reinterpretation and changes in competence.
- User feedback: excellent and clicking is not an unbiased quality label
Users will click, collect, praise or comment, but these feedbacks are influenced by display locations, titles, access to people and exposure opportunities.
Discuss assumptions, expiry conditions and systemic trade-offs.
Deep
- Compressed evidence index version consistency: IVF / PQ reconstruction and regression
Reverse file vector indexing first divides the database into a broad grouping, and only parts of the partition are detected for queries; Volume Quantifies the vectors or residues into subspaces, compressed by codebooks.