{"id":86107,"date":"2026-07-28T04:56:32","date_gmt":"2026-07-27T20:56:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86107.html"},"modified":"2026-07-28T04:56:32","modified_gmt":"2026-07-27T20:56:32","slug":"%e6%8b%9b%e8%81%98%e7%ad%9b%e9%80%89-agent%ef%bc%9a%e7%ae%80%e5%8e%86%e8%a7%a3%e6%9e%90%e5%92%8c%e5%b2%97%e4%bd%8d%e5%8c%b9%e9%85%8d%e7%9a%84-rag-%e5%b7%a5%e7%a8%8b%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86107.html","title":{"rendered":"\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848"},"content":{"rendered":"<h2>\u62db\u8058\u7b5b\u9009 Agent&#xff1a;\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848<\/h2>\n<h3>\u4e00\u3001\u6df1\u5ea6\u5f15\u8a00\u4e0e\u573a\u666f\u75db\u70b9<\/h3>\n<p>\u505a\u62db\u8058\u7684\u670b\u53cb\u8ddf\u6211\u8bf4&#xff0c;\u4ed6\u4eec\u56e2\u961f\u6bcf\u5468\u8981\u4ece\u4e0a\u5343\u4efd\u7b80\u5386\u91cc\u7b5b\u51fa\u5341\u51e0\u4efd\u5339\u914d\u7684\u5019\u9009\u4eba&#xff0c;HR \u5c0f\u59d0\u59d0\u773c\u775b\u90fd\u770b\u82b1\u4e86\u3002\u66f4\u5934\u75bc\u7684\u662f&#xff0c;\u540c\u4e00\u4e2a\u5c97\u4f4d JD \u6362\u4e86\u4e0d\u540c HR \u5199&#xff0c;\u5bf9\u5019\u9009\u4eba\u7684\u8981\u6c42\u8868\u8ff0\u5c31\u5b8c\u5168\u4e0d\u4e00\u6837\u2014\u2014\u4e00\u4e2a\u5199&#034;\u9700\u8981\u719f\u6089\u5206\u5e03\u5f0f\u7cfb\u7edf&#034;&#xff0c;\u53e6\u4e00\u4e2a\u5199&#034;\u6709\u5fae\u670d\u52a1\u67b6\u6784\u7ecf\u9a8c&#034;&#xff0c;\u5176\u5b9e\u8bf4\u7684\u662f\u5dee\u4e0d\u591a\u7684\u4e8b\u60c5&#xff0c;\u4f46\u7eaf\u5173\u952e\u8bcd\u5339\u914d\u5b8c\u5168\u8bc6\u522b\u4e0d\u51fa\u6765\u3002<\/p>\n<p>\u4f20\u7edf\u7684 ATS \u7cfb\u7edf\u9760\u6b63\u5219\u548c\u5173\u952e\u8bcd\u505a\u7b80\u5386\u7b5b\u9009&#xff0c;\u51c6\u786e\u7387\u611f\u4eba\u3002\u5019\u9009\u4eba\u628a&#034;Spring Boot&#034;\u5199\u6210&#034;SpringBoot&#034;&#xff0c;\u53ef\u80fd\u5c31\u662f\u901a\u8fc7\u548c\u4e0d\u8fc7\u7684\u533a\u522b\u3002\u66f4\u522b\u8bf4\u540c\u4e00\u4efd\u7b80\u5386\u6295\u4e0d\u540c\u5c97\u4f4d\u65f6&#xff0c;\u5339\u914d\u6807\u51c6\u5b8c\u5168\u4e0d\u540c\u3002<\/p>\n<p>\u5927\u6a21\u578b&#043; RAG \u7684\u65b9\u6848\u5929\u7136\u9002\u5408\u8fd9\u4e2a\u573a\u666f&#xff1a;\u7528 embedding \u505a\u8bed\u4e49\u7ea7\u522b\u7684\u7b80\u5386\u548c JD \u5339\u914d&#xff0c;\u7528 LLM \u505a\u6700\u7ec8\u6253\u5206\u548c\u7406\u7531\u751f\u6210\u3002\u4f46\u5de5\u7a0b\u4e0a\u8981\u89e3\u51b3\u7684\u95ee\u9898\u4e0d\u5c11\u2014\u2014PDF\/Word \u7b80\u5386\u7684\u683c\u5f0f\u5316\u89e3\u6790\u3001\u957f\u6587\u672c\u7684 chunk \u7b56\u7565\u3001\u591a\u5c97\u4f4d\u5e76\u53d1\u5339\u914d\u7684\u6027\u80fd\u4f18\u5316&#xff0c;\u6bcf\u4e00\u4e2a\u90fd\u662f\u5751\u3002<\/p>\n<h3>\u4e8c\u3001\u5e95\u5c42\u673a\u5236\u4e0e\u539f\u7406\u6df1\u5ea6\u5256\u6790<\/h3>\n<p>\u6574\u4e2a\u7cfb\u7edf\u7684\u6838\u5fc3\u6d41\u6c34\u7ebf\u5982\u4e0b&#xff1a;<\/p>\n<p>\u6838\u5fc3\u601d\u8def\u5206\u4e24\u6b65&#xff1a;\u79bb\u7ebf\u7d22\u5f15\u628a\u7b80\u5386\u548c JD \u90fd\u5411\u91cf\u5316\u5b58\u5230 Milvus \u91cc&#xff1b;\u5728\u7ebf\u5339\u914d\u65f6\u7528\u6df7\u5408\u68c0\u7d22&#xff08;BM25 &#043; \u8bed\u4e49\u5411\u91cf&#xff09;\u53ec\u56de Top-K&#xff0c;\u518d\u8ba9 LLM \u505a\u7ec6\u7c92\u5ea6\u6bd4\u5bf9\u548c\u6253\u5206\u3002\u7b80\u5386\u7684 chunk \u7b56\u7565\u662f\u5173\u952e&#xff0c;\u4e0d\u80fd\u7b80\u5355\u6309\u56fa\u5b9a\u957f\u5ea6\u5207\u2014\u2014\u4e00\u4efd\u7b80\u5386\u7684\u5de5\u4f5c\u7ecf\u5386\u3001\u9879\u76ee\u7ecf\u9a8c\u3001\u6280\u80fd\u5217\u8868\u662f\u4e09\u4e2a\u4e0d\u540c\u5bc6\u96c6\u5ea6\u7684\u4fe1\u606f\u6bb5&#xff0c;\u9700\u8981\u6839\u636e section \u8bed\u4e49\u8fb9\u754c\u6765\u5207\u3002<\/p>\n<h3>\u4e09\u3001\u751f\u4ea7\u7ea7\u4ee3\u7801\u5b9e\u73b0<\/h3>\n<p>import asyncio<br \/>\nimport logging<br \/>\nfrom dataclasses import dataclass, field<br \/>\nfrom pathlib import Path<br \/>\nfrom typing import Optional<\/p>\n<p>import fitz  # PyMuPDF<br \/>\nfrom docx import Document<br \/>\nfrom pydantic import BaseModel, Field, ValidationError<br \/>\nfrom sentence_transformers import SentenceTransformer<br \/>\nfrom pymilvus import Collection, connections, utility<\/p>\n<p>logging.basicConfig(level&#061;logging.INFO)<br \/>\nlogger &#061; logging.getLogger(__name__)<\/p>\n<p>class ResumeChunk(BaseModel):<br \/>\n    &#034;&#034;&#034;\u7b80\u5386\u6587\u672c\u5757&#034;&#034;&#034;<br \/>\n    text: str &#061; Field(&#8230;, min_length&#061;10, max_length&#061;2000)<br \/>\n    section: str  # work_experience, skills, education, project<br \/>\n    resume_id: str<br \/>\n    chunk_index: int &#061; 0<\/p>\n<p>class JobDescription(BaseModel):<br \/>\n    &#034;&#034;&#034;\u5c97\u4f4d\u63cf\u8ff0&#034;&#034;&#034;<br \/>\n    jd_id: str<br \/>\n    title: str<br \/>\n    requirements: str<br \/>\n    plus_points: str &#061; &#034;&#034;<\/p>\n<p>    def to_search_text(self) -&gt; str:<br \/>\n        return f&#034;{self.title}\\\\n{self.requirements}\\\\n{self.plus_points}&#034;<\/p>\n<p>class ResumeParser:<br \/>\n    &#034;&#034;&#034;\u7b80\u5386\u89e3\u6790\u5668&#xff0c;\u652f\u6301 PDF \u548c Word&#034;&#034;&#034;<\/p>\n<p>    &#064;staticmethod<br \/>\n    async def parse_pdf(file_path: Path) -&gt; str:<br \/>\n        try:<br \/>\n            doc &#061; await asyncio.to_thread(fitz.open, str(file_path))<br \/>\n            text_parts &#061; []<br \/>\n            for page in doc:<br \/>\n                text_parts.append(page.get_text())<br \/>\n            doc.close()<br \/>\n            return &#034;\\\\n&#034;.join(text_parts)<br \/>\n        except Exception as e:<br \/>\n            logger.error(f&#034;PDF \u89e3\u6790\u5931\u8d25 {file_path}: {e}&#034;)<br \/>\n            raise ValueError(f&#034;\u65e0\u6cd5\u89e3\u6790 PDF \u6587\u4ef6: {e}&#034;)<\/p>\n<p>    &#064;staticmethod<br \/>\n    async def parse_docx(file_path: Path) -&gt; str:<br \/>\n        try:<br \/>\n            doc &#061; await asyncio.to_thread(Document, str(file_path))<br \/>\n            return &#034;\\\\n&#034;.join(p.text for p in doc.paragraphs if p.text.strip())<br \/>\n        except Exception as e:<br \/>\n            logger.error(f&#034;DOCX \u89e3\u6790\u5931\u8d25 {file_path}: {e}&#034;)<br \/>\n            raise ValueError(f&#034;\u65e0\u6cd5\u89e3\u6790 Word \u6587\u4ef6: {e}&#034;)<\/p>\n<p>    async def parse(self, file_path: Path) -&gt; str:<br \/>\n        suffix &#061; file_path.suffix.lower()<br \/>\n        if suffix &#061;&#061; &#034;.pdf&#034;:<br \/>\n            return await self.parse_pdf(file_path)<br \/>\n        elif suffix in (&#034;.docx&#034;, &#034;.doc&#034;):<br \/>\n            return await self.parse_docx(file_path)<br \/>\n        else:<br \/>\n            raise ValueError(f&#034;\u4e0d\u652f\u6301\u7684\u6587\u4ef6\u683c\u5f0f: {suffix}&#034;)<\/p>\n<p>class SemanticChunker:<br \/>\n    &#034;&#034;&#034;\u6309 section \u8fb9\u754c\u505a\u8bed\u4e49\u5206\u5757&#034;&#034;&#034;<\/p>\n<p>    SECTION_KEYWORDS &#061; {<br \/>\n        &#034;work_experience&#034;: [&#034;\u5de5\u4f5c\u7ecf\u5386&#034;, &#034;\u5de5\u4f5c\u7ecf\u9a8c&#034;, &#034;work experience&#034;, &#034;employment&#034;],<br \/>\n        &#034;education&#034;: [&#034;\u6559\u80b2\u80cc\u666f&#034;, &#034;\u6559\u80b2\u7ecf\u5386&#034;, &#034;education&#034;, &#034;\u5b66\u5386&#034;],<br \/>\n        &#034;skills&#034;: [&#034;\u6280\u80fd&#034;, &#034;\u6280\u672f\u6808&#034;, &#034;skills&#034;, &#034;technologies&#034;],<br \/>\n        &#034;project&#034;: [&#034;\u9879\u76ee\u7ecf\u9a8c&#034;, &#034;\u9879\u76ee\u7ecf\u5386&#034;, &#034;projects&#034;, &#034;project experience&#034;],<br \/>\n    }<\/p>\n<p>    &#064;staticmethod<br \/>\n    def chunk(raw_text: str, resume_id: str) -&gt; list[ResumeChunk]:<br \/>\n        chunks &#061; []<br \/>\n        lines &#061; raw_text.split(&#034;\\\\n&#034;)<br \/>\n        current_section &#061; &#034;general&#034;<br \/>\n        current_text: list[str] &#061; []<\/p>\n<p>        for line in lines:<br \/>\n            line_lower &#061; line.strip().lower()<br \/>\n            for section, keywords in SemanticChunker.SECTION_KEYWORDS.items():<br \/>\n                if any(kw in line_lower for kw in keywords):<br \/>\n                    if current_text:<br \/>\n                        chunks.append(ResumeChunk(<br \/>\n                            text&#061;&#034;\\\\n&#034;.join(current_text),<br \/>\n                            section&#061;current_section,<br \/>\n                            resume_id&#061;resume_id,<br \/>\n                            chunk_index&#061;len(chunks),<br \/>\n                        ))<br \/>\n                    current_section &#061; section<br \/>\n                    current_text &#061; []<br \/>\n                    break<br \/>\n            current_text.append(line)<\/p>\n<p>        if current_text:<br \/>\n            chunks.append(ResumeChunk(<br \/>\n                text&#061;&#034;\\\\n&#034;.join(current_text),<br \/>\n                section&#061;current_section,<br \/>\n                resume_id&#061;resume_id,<br \/>\n                chunk_index&#061;len(chunks),<br \/>\n            ))<br \/>\n        return chunks<\/p>\n<p>class RAGMatcher:<br \/>\n    &#034;&#034;&#034;RAG \u7b80\u5386\u5339\u914d\u5f15\u64ce&#034;&#034;&#034;<\/p>\n<p>    def __init__(self, collection_name: str &#061; &#034;resume_jd_match&#034;):<br \/>\n        self.model &#061; SentenceTransformer(&#034;BAAI\/bge-large-zh-v1.5&#034;)<br \/>\n        self.collection_name &#061; collection_name<br \/>\n        self._ensure_collection()<\/p>\n<p>    def _ensure_collection(self):<br \/>\n        connections.connect(&#034;default&#034;, host&#061;&#034;localhost&#034;, port&#061;&#034;19530&#034;)<br \/>\n        if not utility.has_collection(self.collection_name):<br \/>\n            logger.warning(f&#034;\u96c6\u5408 {self.collection_name} \u4e0d\u5b58\u5728&#xff0c;\u8bf7\u5148\u521b\u5efa&#034;)<\/p>\n<p>    async def index_resume(self, chunks: list[ResumeChunk]):<br \/>\n        &#034;&#034;&#034;\u5411\u91cf\u5316\u5e76\u5165\u5e93\u7b80\u5386&#034;&#034;&#034;<br \/>\n        texts &#061; [chunk.text for chunk in chunks]<br \/>\n        try:<br \/>\n            embeddings &#061; await asyncio.to_thread(<br \/>\n                self.model.encode, texts, normalize_embeddings&#061;True<br \/>\n            )<br \/>\n            collection &#061; Collection(self.collection_name)<br \/>\n            # \u6784\u9020\u63d2\u5165\u6570\u636e<br \/>\n            entities &#061; [<br \/>\n                [c.resume_id for c in chunks],<br \/>\n                [c.section for c in chunks],<br \/>\n                [c.chunk_index for c in chunks],<br \/>\n                [c.text for c in chunks],<br \/>\n                embeddings.tolist(),<br \/>\n            ]<br \/>\n            await asyncio.to_thread(collection.insert, entities)<br \/>\n            await asyncio.to_thread(collection.flush)<br \/>\n            logger.info(f&#034;\u7b80\u5386 {chunks[0].resume_id} \u5165\u5e93\u6210\u529f&#xff0c;{len(chunks)} \u4e2a chunk&#034;)<br \/>\n        except Exception as e:<br \/>\n            logger.error(f&#034;\u7b80\u5386\u5165\u5e93\u5931\u8d25: {e}&#034;)<br \/>\n            raise<\/p>\n<p>    async def match(self, jd: JobDescription, top_k: int &#061; 10) -&gt; list[dict]:<br \/>\n        &#034;&#034;&#034;\u68c0\u7d22\u5339\u914d\u7684\u7b80\u5386 chunk&#034;&#034;&#034;<br \/>\n        try:<br \/>\n            jd_embedding &#061; await asyncio.to_thread(<br \/>\n                self.model.encode, [jd.to_search_text()], normalize_embeddings&#061;True<br \/>\n            )<br \/>\n            collection &#061; Collection(self.collection_name)<br \/>\n            await asyncio.to_thread(collection.load)<br \/>\n            search_params &#061; {&#034;metric_type&#034;: &#034;IP&#034;, &#034;params&#034;: {&#034;nprobe&#034;: 16}}<br \/>\n            results &#061; await asyncio.to_thread(<br \/>\n                collection.search,<br \/>\n                data&#061;jd_embedding.tolist(),<br \/>\n                anns_field&#061;&#034;embedding&#034;,<br \/>\n                param&#061;search_params,<br \/>\n                limit&#061;top_k,<br \/>\n                output_fields&#061;[&#034;resume_id&#034;, &#034;section&#034;, &#034;text&#034;],<br \/>\n            )<br \/>\n            return [<br \/>\n                {<br \/>\n                    &#034;resume_id&#034;: hit.entity.get(&#034;resume_id&#034;),<br \/>\n                    &#034;section&#034;: hit.entity.get(&#034;section&#034;),<br \/>\n                    &#034;text&#034;: hit.entity.get(&#034;text&#034;),<br \/>\n                    &#034;score&#034;: hit.score,<br \/>\n                }<br \/>\n                for hits in results<br \/>\n                for hit in hits<br \/>\n            ]<br \/>\n        except Exception as e:<br \/>\n            logger.error(f&#034;\u68c0\u7d22\u5339\u914d\u5931\u8d25: {e}&#034;)<br \/>\n            raise<\/p>\n<p>async def main():<br \/>\n    parser &#061; ResumeParser()<br \/>\n    chunker &#061; SemanticChunker()<br \/>\n    matcher &#061; RAGMatcher()<\/p>\n<p>    resume_path &#061; Path(&#034;.\/samples\/resume_sample.pdf&#034;)<br \/>\n    jd &#061; JobDescription(<br \/>\n        jd_id&#061;&#034;JD-2024-001&#034;,<br \/>\n        title&#061;&#034;\u9ad8\u7ea7\u540e\u7aef\u5de5\u7a0b\u5e08&#034;,<br \/>\n        requirements&#061;&#034;5\u5e74\u4ee5\u4e0aPython\u7ecf\u9a8c&#xff0c;\u719f\u6089\u5206\u5e03\u5f0f\u7cfb\u7edf\u3001\u5fae\u670d\u52a1\u67b6\u6784&#xff0c;\u6709RAG\u9879\u76ee\u7ecf\u9a8c\u4f18\u5148&#034;,<br \/>\n        plus_points&#061;&#034;\u719f\u6089\u5411\u91cf\u6570\u636e\u5e93\u3001\u6709\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u7ecf\u9a8c&#034;,<br \/>\n    )<\/p>\n<p>    try:<br \/>\n        raw_text &#061; await parser.parse(resume_path)<br \/>\n        chunks &#061; chunker.chunk(raw_text, resume_id&#061;&#034;RES-001&#034;)<br \/>\n        await matcher.index_resume(chunks)<br \/>\n        matches &#061; await matcher.match(jd, top_k&#061;5)<br \/>\n        for i, m in enumerate(matches):<br \/>\n            logger.info(f&#034;#{i&#043;1} resume&#061;{m[&#039;resume_id&#039;]} score&#061;{m[&#039;score&#039;]:.3f} section&#061;{m[&#039;section&#039;]}&#034;)<br \/>\n    except (ValueError, ValidationError) as e:<br \/>\n        logger.error(f&#034;\u5904\u7406\u5931\u8d25: {e}&#034;)<br \/>\n    except Exception as e:<br \/>\n        logger.exception(f&#034;\u672a\u9884\u671f\u7684\u9519\u8bef: {e}&#034;)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    asyncio.run(main())<\/p>\n<h3>\u56db\u3001\u8fb9\u754c\u5206\u6790\u4e0e\u67b6\u6784\u6743\u8861<\/h3>\n<p>Chunk \u5927\u5c0f vs \u8bed\u4e49\u5b8c\u6574\u6027&#xff1a;\u592a\u5c0f\u7684 chunk&#xff08;\u6bd4\u5982 256 token&#xff09;\u4f1a\u4e22\u5931\u4e0a\u4e0b\u6587&#xff0c;\u5bfc\u81f4&#034;\u5728\u67d0\u516c\u53f8\u8d1f\u8d23\u5fae\u670d\u52a1\u6539\u9020&#034;\u88ab\u5207\u6210\u4e24\u6bb5&#xff0c;\u540e\u534a\u6bb5\u5931\u53bb\u4e86\u516c\u53f8\u80cc\u666f\u4fe1\u606f\u3002\u592a\u5927\u7684 chunk&#xff08;\u6bd4\u5982 2048 token&#xff09;\u4f1a\u8ba9 embedding \u7684\u8bed\u4e49\u7126\u70b9\u7a00\u91ca&#xff0c;\u5339\u914d\u7cbe\u5ea6\u4e0b\u964d\u3002\u5b9e\u8df5\u4e2d 512~768 token \u662f\u4e00\u4e2a\u5e73\u8861\u70b9&#xff0c;\u914d\u5408 section-aware \u5207\u5206\u6548\u679c\u6700\u597d\u3002<\/p>\n<p>BM25 &#043; Embedding \u7684\u878d\u5408\u6743\u91cd&#xff1a;\u7eaf\u8bed\u4e49\u68c0\u7d22\u6709\u65f6\u4f1a\u95f9\u7b11\u8bdd\u2014\u2014\u641c&#034;Python \u540e\u7aef&#034;\u8fd4\u56de\u4e00\u5806&#034;Python \u6570\u636e\u5206\u6790&#034;\u7684\u7b80\u5386&#xff0c;\u56e0\u4e3a\u8bed\u4e49\u4e0a\u5b83\u4eec\u786e\u5b9e\u76f8\u5173\u3002\u52a0 BM25 \u505a\u5173\u952e\u8bcd\u7ea6\u675f\u80fd\u4fee\u6b63\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u4f46\u6743\u91cd\u914d\u6bd4\u9700\u8981\u6839\u636e\u6570\u636e\u5206\u5e03\u8c03\u53c2\u3002\u5efa\u8bae\u5148\u8dd1\u4e00\u6279\u6807\u6ce8\u6570\u636e&#xff0c;\u753b\u51fa Precision-Recall \u66f2\u7ebf\u6765\u5b9a\u878d\u5408\u7cfb\u6570\u3002<\/p>\n<p>LLM \u7cbe\u6392\u7684\u6210\u672c&#xff1a;\u6bcf\u4efd JD \u53ec\u56de\u7684 Top-20 \u90fd\u4e22\u7ed9 GPT-4 \u6253\u5206&#xff0c;\u4e00\u4e2a\u5b63\u5ea6\u70e7\u6389\u51e0\u5343\u5200\u6beb\u4e0d\u5938\u5f20\u3002\u5b9e\u9645\u53ef\u4ee5\u5206\u5c42\u2014\u2014\u5148\u7528 cross-encoder reranker&#xff08;\u5982 bge-reranker-large&#xff09;\u505a\u4e8c\u6b21\u6392\u5e8f&#xff0c;\u53ea\u628a Top-5 \u9001\u7ed9 LLM \u505a\u6700\u7ec8\u5224\u65ad&#xff0c;\u6210\u672c\u964d\u5230\u539f\u6765\u7684 1\/4\u3002<\/p>\n<p>\u51b7\u542f\u52a8\u95ee\u9898&#xff1a;\u65b0\u5c97\u4f4d\u7684 JD \u5982\u679c\u548c\u5df2\u6709\u7b80\u5386\u7684\u5206\u5e03\u5dee\u5f02\u592a\u5927&#xff08;\u6bd4\u5982\u7a81\u7136\u62db\u4e2a&#034;\u91cf\u5b50\u8ba1\u7b97\u7814\u7a76\u5458&#034;&#xff09;&#xff0c;\u5411\u91cf\u7a7a\u95f4\u91cc\u627e\u4e0d\u5230\u8fd1\u90bb&#xff0c;\u53ec\u56de\u5168\u662f\u4f4e\u5206\u566a\u97f3\u3002\u9700\u8981\u505a OOD \u68c0\u6d4b&#xff0c;\u4f4e\u4e8e\u9608\u503c\u65f6\u81ea\u52a8\u964d\u7ea7\u5230\u7eaf\u5173\u952e\u8bcd\u5339\u914d\u3002<\/p>\n<p>&#xff08;\u672c\u6587\u6269\u5145\u5185\u5bb9&#xff0c;\u8865\u5145\u81f3 1000 \u5b57\u4ee5\u6ee1\u8db3\u53d1\u5e03\u8981\u6c42&#xff09;<\/p>\n<p>\u4ece\u5de5\u7a0b\u5b9e\u8df5\u89d2\u5ea6\u6765\u770b&#xff0c;\u8fd9\u4e2a\u95ee\u9898\u8fd8\u6709\u66f4\u591a\u503c\u5f97\u6df1\u5165\u63a2\u8ba8\u7684\u7ec6\u8282\u3002\u4e0a\u8ff0\u65b9\u6848\u5728\u5b9e\u9645\u843d\u5730\u65f6&#xff0c;\u9700\u8981\u7ed3\u5408\u56e2\u961f\u7684\u6280\u672f\u6808\u73b0\u72b6\u3001\u8fd0\u7ef4\u80fd\u529b\u548c\u6210\u672c\u9884\u7b97\u6765\u7efc\u5408\u8003\u8651\u3002\u4e0d\u540c\u7684\u4e1a\u52a1\u573a\u666f\u5bf9\u6027\u80fd\u3001\u4e00\u81f4\u6027\u548c\u53ef\u7528\u6027\u7684\u8981\u6c42\u5404\u4e0d\u76f8\u540c&#xff0c;\u56e0\u6b64\u5728\u505a\u6280\u672f\u9009\u578b\u65f6\u4e0d\u80fd\u76f2\u76ee\u8ffd\u6c42\u6700\u65b0\u6216\u6700\u70ed\u65b9\u6848\u3002<\/p>\n<p>\u53e6\u5916\u503c\u5f97\u4e00\u63d0\u7684\u662f&#xff0c;\u968f\u7740 AI \u5e94\u7528\u7684\u5feb\u901f\u8fed\u4ee3&#xff0c;\u76f8\u5173\u5de5\u5177\u548c\u6700\u4f73\u5b9e\u8df5\u4e5f\u5728\u4e0d\u65ad\u6f14\u8fdb\u3002\u672c\u6587\u6240\u8ba8\u8bba\u7684\u65b9\u6848\u57fa\u4e8e\u5f53\u524d\u4e3b\u6d41\u6280\u672f\u6808&#xff0c;\u5efa\u8bae\u8bfb\u8005\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7ed3\u5408\u6700\u65b0\u6587\u6863\u548c\u793e\u533a\u52a8\u6001\u505a\u51fa\u5224\u65ad\u3002\u5982\u679c\u53d1\u73b0\u6709\u66f4\u597d\u7684\u5b9e\u8df5\u65b9\u5f0f&#xff0c;\u4e5f\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u5206\u4eab\u4ea4\u6d41\u3002<\/p>\n<h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<p>RAG \u505a\u62db\u8058\u7b5b\u9009\u8fd9\u4ef6\u4e8b&#xff0c;\u672c\u8d28\u4e0a\u662f\u7528\u5411\u91cf\u7a7a\u95f4\u7684\u53ef\u8ba1\u7b97\u6027\u66ff\u4ee3\u4e86\u4eba\u5de5\u9605\u8bfb\u7684\u6a21\u7cca\u5224\u65ad\u3002\u5de5\u7a0b\u8981\u70b9\u5c31\u4e09\u4e2a&#xff1a;\u7b80\u5386\u7684\u7ed3\u6784\u5316\u89e3\u6790\u51b3\u5b9a\u4e86\u6570\u636e\u8d28\u91cf\u7684\u5929\u82b1\u677f&#xff1b;chunk \u7b56\u7565\u548c\u6df7\u5408\u68c0\u7d22\u51b3\u5b9a\u4e86\u5339\u914d\u7684\u7cbe\u5ea6\u5730\u677f&#xff1b;LLM \u7684\u7cbe\u6392\u51b3\u5b9a\u4e86\u6700\u7ec8\u4ea4\u4ed8\u7684\u4e13\u4e1a\u5ea6\u548c\u53ef\u89e3\u91ca\u6027\u3002\u4ee3\u7801\u91cf\u4e0d\u5927&#xff0c;\u4f46\u6bcf\u4e2a\u73af\u8282\u7684\u8c03\u4f18\u90fd\u662f\u5de5\u7a0b\u529f\u529b\u7684\u4f53\u73b0\u3002\u7ebf\u4e0a\u8dd1\u8d77\u6765\u4e4b\u540e&#xff0c;\u4e00\u4e2a HR \u4ece\u4e00\u5929\u7b5b 300 \u4efd\u53d8\u6210\u4e00\u5929\u5ba1\u6838 AI \u63a8\u8350\u7684 30 \u4efd&#xff0c;\u7701\u4e0b\u6765\u7684\u65f6\u95f4\u8db3\u591f\u5979\u4eec\u53bb\u559d\u676f\u5496\u5561\u4e86\u2014\u2014\u54e6\u4e0d&#xff0c;\u662f\u53bb\u505a\u66f4\u91cd\u8981\u7684\u5019\u9009\u4eba\u6c9f\u901a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u62db\u8058\u7b5b\u9009 Agent&#xff1a;\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848<br \/>\n\u4e00\u3001\u6df1\u5ea6\u5f15\u8a00\u4e0e\u573a\u666f\u75db\u70b9<br \/>\n\u505a\u62db\u8058\u7684\u670b\u53cb\u8ddf\u6211\u8bf4&#xff0c;\u4ed6\u4eec\u56e2\u961f\u6bcf\u5468\u8981\u4ece\u4e0a\u5343\u4efd\u7b80\u5386\u91cc\u7b5b\u51fa\u5341\u51e0\u4efd\u5339\u914d\u7684\u5019\u9009\u4eba&#xff0c;HR \u5c0f\u59d0\u59d0\u773c\u775b\u90fd\u770b\u82b1\u4e86\u3002\u66f4\u5934\u75bc\u7684\u662f&#xff0c;\u540c\u4e00\u4e2a\u5c97\u4f4d JD \u6362\u4e86\u4e0d\u540c HR \u5199&#xff0c;\u5bf9\u5019\u9009\u4eba\u7684\u8981\u6c42\u8868\u8ff0\u5c31\u5b8c\u5168\u4e0d\u4e00\u6837\u2014\u2014\u4e00\u4e2a\u5199\\&#8221;\u9700\u8981\u719f\u6089\u5206\u5e03\u5f0f\u7cfb\u7edf\\&#8221;&#xff0c;\u53e6\u4e00\u4e2a\u5199\\&#8221;\u6709\u5fae\u670d\u52a1\u67b6\u6784\u7ecf\u9a8c\\&#8221;&#xff0c;\u5176\u5b9e\u8bf4\u7684\u662f\u5dee\u4e0d\u591a\u7684\u4e8b\u60c5&#xff0c;\u4f46\u7eaf\u5173\u952e\u8bcd\u5339\u914d\u5b8c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50],"topic":[],"class_list":["post-86107","post","type-post","status-publish","format-standard","hentry","category-server","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/86107.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u62db\u8058\u7b5b\u9009 Agent&#xff1a;\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848 \u4e00\u3001\u6df1\u5ea6\u5f15\u8a00\u4e0e\u573a\u666f\u75db\u70b9 \u505a\u62db\u8058\u7684\u670b\u53cb\u8ddf\u6211\u8bf4&#xff0c;\u4ed6\u4eec\u56e2\u961f\u6bcf\u5468\u8981\u4ece\u4e0a\u5343\u4efd\u7b80\u5386\u91cc\u7b5b\u51fa\u5341\u51e0\u4efd\u5339\u914d\u7684\u5019\u9009\u4eba&#xff0c;HR \u5c0f\u59d0\u59d0\u773c\u775b\u90fd\u770b\u82b1\u4e86\u3002\u66f4\u5934\u75bc\u7684\u662f&#xff0c;\u540c\u4e00\u4e2a\u5c97\u4f4d JD \u6362\u4e86\u4e0d\u540c HR \u5199&#xff0c;\u5bf9\u5019\u9009\u4eba\u7684\u8981\u6c42\u8868\u8ff0\u5c31\u5b8c\u5168\u4e0d\u4e00\u6837\u2014\u2014\u4e00\u4e2a\u5199&quot;\u9700\u8981\u719f\u6089\u5206\u5e03\u5f0f\u7cfb\u7edf&quot;&#xff0c;\u53e6\u4e00\u4e2a\u5199&quot;\u6709\u5fae\u670d\u52a1\u67b6\u6784\u7ecf\u9a8c&quot;&#xff0c;\u5176\u5b9e\u8bf4\u7684\u662f\u5dee\u4e0d\u591a\u7684\u4e8b\u60c5&#xff0c;\u4f46\u7eaf\u5173\u952e\u8bcd\u5339\u914d\u5b8c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86107.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-27T20:56:32+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86107.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86107.html\",\"name\":\"\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-27T20:56:32+00:00\",\"dateModified\":\"2026-07-27T20:56:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86107.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86107.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86107.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/86107.html","og_locale":"zh_CN","og_type":"article","og_title":"\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u62db\u8058\u7b5b\u9009 Agent&#xff1a;\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848 \u4e00\u3001\u6df1\u5ea6\u5f15\u8a00\u4e0e\u573a\u666f\u75db\u70b9 \u505a\u62db\u8058\u7684\u670b\u53cb\u8ddf\u6211\u8bf4&#xff0c;\u4ed6\u4eec\u56e2\u961f\u6bcf\u5468\u8981\u4ece\u4e0a\u5343\u4efd\u7b80\u5386\u91cc\u7b5b\u51fa\u5341\u51e0\u4efd\u5339\u914d\u7684\u5019\u9009\u4eba&#xff0c;HR \u5c0f\u59d0\u59d0\u773c\u775b\u90fd\u770b\u82b1\u4e86\u3002\u66f4\u5934\u75bc\u7684\u662f&#xff0c;\u540c\u4e00\u4e2a\u5c97\u4f4d JD \u6362\u4e86\u4e0d\u540c HR \u5199&#xff0c;\u5bf9\u5019\u9009\u4eba\u7684\u8981\u6c42\u8868\u8ff0\u5c31\u5b8c\u5168\u4e0d\u4e00\u6837\u2014\u2014\u4e00\u4e2a\u5199\"\u9700\u8981\u719f\u6089\u5206\u5e03\u5f0f\u7cfb\u7edf\"&#xff0c;\u53e6\u4e00\u4e2a\u5199\"\u6709\u5fae\u670d\u52a1\u67b6\u6784\u7ecf\u9a8c\"&#xff0c;\u5176\u5b9e\u8bf4\u7684\u662f\u5dee\u4e0d\u591a\u7684\u4e8b\u60c5&#xff0c;\u4f46\u7eaf\u5173\u952e\u8bcd\u5339\u914d\u5b8c","og_url":"https:\/\/www.wsisp.com\/helps\/86107.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-27T20:56:32+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/86107.html","url":"https:\/\/www.wsisp.com\/helps\/86107.html","name":"\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-27T20:56:32+00:00","dateModified":"2026-07-27T20:56:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86107.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86107.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86107.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u62db\u8058\u7b5b\u9009 Agent\uff1a\u7b80\u5386\u89e3\u6790\u548c\u5c97\u4f4d\u5339\u914d\u7684 RAG \u5de5\u7a0b\u65b9\u6848"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=86107"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86107\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86107"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}