当前位置:首页 > 报告详情

利用vLLM部署多模式RAG系统.pdf

上传人: 竿*** 编号:981850 2025-11-29 65页 6.62MB

1、1|Copyright 8/16/23 Zilliz1|Copyright 8/16/23 ZillizStephen Batifol MilvusQCon LondonMultimodal RAG using vLLM and Pixtral2|Copyright 8/16/23 Zilliz2|Copyright 8/16/23 ZillizStephen BatifolDeveloper Advocate,Zilliz/MilvusAbout M 8/16/23 Zilliz3|Copyright 8/16/23 Zilliz3|Copyright 8/16/23 Zilliz3|Cop

2、yright 8/16/23 ZillizWhat is Vector Search?4|Copyright 8/16/23 Zilliz4|Copyright 8/16/23 ZillizVectors unlock Unstructured Data5|Copyright 8/16/23 Zilliz5|Copyright 8/16/23 ZillizVector Space6|Copyright 8/16/23 Zilliz6|Copyright 8/16/23 ZillizBrute-force:measure the distance to all points and choose

3、 the shortest!Computing Nearest Neighbors7|Copyright 8/16/23 Zilliz7|Copyright 8/16/23 ZillizML Models that predict how to approximate close neighbors.These models are called Indexes and take parameters to trade off model complexity,quality and search speed.Approximate Nearest Neighbors8|Copyright 8

4、/16/23 Zilliz8|Copyright 8/16/23 ZillizApproximate Nearest Neighbors Trade-offs Search SpeedModel ComplexityModel Quality9|Copyright 8/16/23 Zilliz9|Copyright 8/16/23 ZillizFLATBrute ForceIndexes IVFInverted File IndexHNSWHierarchical Navigable Small World Graphs10|Copyright 8/16/23 Zilliz10|Copyrig

5、ht 8/16/23 ZillizPicking,Evaluating,&Tuning the Index IVF QuantizationDiskANNCAGRA GPUHNSWScANNIVF_FLATNOTE Points farther from center indicate better performance Higher Accuracy,Lower Latency,Higher Throughput,Faster Index Time,Lower Cost)11|Copyright 8/16/23 Zilliz11|Copyright 8/16/23 ZillizSummar

6、yIndexTrade-offsFLAT Simple&accurate Slow at scaleIVF Fast enough for most tasks Needs tuning,accuracy can varyHNSW High QPS,great accuracy Slow to build,costly to updateDISKANN Scales beyond RAM,cheaper infra Latency from disk access12|Copyright 8/16/23 Zilliz12|Copyright 8/16/23 ZillizSummaryIndex

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
根据报告的内容,全文主要内容概括如下: 1. **向量搜索与索引**:向量搜索通过将非结构化数据转换为向量,在向量空间中进行近似最近邻搜索。常用的索引包括FLAT、IVF、HNSW和DISKANN,各有优缺点,如FLAT简单准确但速度慢,IVF速度快但需调整,HNSW查询速度快但构建慢,DISKANN可扩展性好但存在磁盘访问延迟。 2. **嵌入模型选择**:选择合适的嵌入模型对RAG性能至关重要,应使用在相似数据上训练的嵌入模型。 3. **RAG评估**:评估RAG系统时,应关注检索召回率,而非仅模型输出,并使用LLM作为评分标准。 4. **RAG与检索**:RAG的成功依赖于有效的检索,包括确保检索器有正确上下文、获取所有相关文档和避免过多噪声。 5. **多模态RAG**:结合文本、音频和视频的多模态RAG可以解决文本RAG的局限性。 6. **技术栈**:使用Milvus作为向量数据库,vLLM进行推理和部署,Pixtral进行多模态嵌入,Koyeb提供基础设施。 7. **模型优化**:通过批量大小、模型分割和量化等技术优化模型在GPU上的性能。 8. **实际应用**:通过视频处理、音频转录和元数据提取等实际案例展示多模态RAG的应用。
解锁无结构数据" 选择最佳嵌入模型" 音频/视频+文本,信息更全面"
客服
商务合作
小程序
服务号
折叠