Code processing method fusing multiple retrieval modes, model end and storage medium
Through the fusion vector search, full-text search and knowledge graph search technology, the problem of insufficient information in the code generation solution is solved, the quality and accuracy of code generation are improved, and the matching between the generated code and the project requirements is ensured.
Patent Information
- Application Number
- CN202411487447.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing code generation scheme, the input information of the scheme based on the code generation model is limited, resulting in the generated code style that does not match the project's own style and the answer adoption rate is low; the solution based on RAG technology has shortcomings in the comprehensiveness of the answers. This results in low matching of the generated code with the actual requirements.
Using code processing methods that combine multiple search methods, including vector search, full-text search and knowledge graph search. By building vector databases and knowledge graphs, segmenting code blocks, entity recognition and fusion search results, improving the quality and accuracy of code generation .
It significantly improves the quality of code generation and completion, ensures the matching between the generated code and the project requirements, and improves the code adoption rate and the authenticity and accuracy of the generated code.
Smart Images

Figure CN119002930A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a code processing method, a model end and a storage medium integrating multiple retrieval modes. Background Art
[0002] Modern integrated development environments (IDEs) provide a variety of automated code suggestion technologies, including code generation, code Q&A, code repair, test case generation, etc. They aim to provide code suggestions to developers and are an important research topic in the field of software engineering.
[0003] There are two technical solutions for automatic code suggestion technology, both of which are based on large coding models.
[0004] Solution 1: Implement various code generation or completion tasks based on the capabilities of the large code generation model. This technical solution mainly relies on the code generation model trained with a large amount of code data. The specific implementation process is as follows: Figure 1 shown.
[0005] Solution 2: If you can find similar code snippets in the project to guide the large model to generate code, it is an easier solution to think of. Some technical solutions are to use RAG technology to enhance the model's code generation capabilities. The specific implementation process is as follows: Figure 2 shown.
[0006] That is, there are two existing automatic code generation solutions:
[0007] The first is a code generation solution based on a large code generation model. This solution has a huge flaw: the information input into the large model is limited, and it is impossible to use similar code in the same project to generate answers, but only rely on the model's own knowledge and ability to answer. Because the ability of the large code model is learned from a large amount of open source code, the generated code style is usually not matched with the project's own style, and the answer adoption rate is also low.
[0008] The second is a code generation solution based on Retrieval Augmented Generation (RAG). In practice, when traditional RAG based on vectorized retrieval is applied to code generation, it often lacks comprehensiveness in answering, resulting in a low match between the code generated by RAG technology based on traditional vector retrieval and the actual required code. Summary of the invention
[0009] In view of the technical defects mentioned in the background technology, the purpose of the embodiments of the present invention is to provide a code processing method, a model end and a storage medium that integrate multiple retrieval methods.
[0010] To achieve the above objectives, in a first aspect, an embodiment of the present invention provides a code processing method integrating multiple retrieval methods, including: Receiving a code generation request sent by the auxiliary coding software front end; the code request includes a code context and a code context of the code area to be generated; The code generation request is searched separately using multiple search methods to obtain multiple search results; the multiple search methods include at least two of vector search, full-text search and knowledge graph search; the multiple search results include at least two of vector search results, full-text search results and knowledge graph search results; Fusing the multiple search results to obtain a fusion result; The code generation request and the fusion result are passed into prompt to form a new code generation prompt word; Input the new code generation prompt word into the code generation model to obtain the code generation result or code completion result; The code generation result or code completion result is returned to the interface of the auxiliary coding software front end for display.
[0011] Further, as a preferred implementation of the present application, before receiving the code generation request sent by the auxiliary coding software front end, the method also includes: Build vector database, index file and knowledge graph.
[0012] The construction of the vector database is specifically as follows: Extracting text from different types of documents and code files, and parsing the text to obtain a long text including project documents and project codes; The long text is segmented by using a function level and a class level to obtain segmented block texts; Use the Embedding model to convert the segmented block text into vector form to form a vector database.
[0013] As a specific implementation of the present application, the long text is segmented using a function level and a class level, specifically: Set the characteristic strings of the implementation codes of functions and classes in the implementation code files of various types of programming languages, and store them in their respective arrays. The arrays are recorded as ; Read the contents of various types of code files in arrays To search based on, confirm the first line position of the function and set it to ; Recursively search the previous line to confirm whether it is a code comment. If so, set the comment line as the first line of the code until a non-comment line is found, thereby confirming the final first line of the code, and using this line position as the basis for segmentation, perform slice segmentation, and store the results in an array In the code block segmentation, the result is recorded as ; Statistical array The number of rows of each element in . If the number of rows is lower than the set value, it is merged with the next element. In this way, the small split blocks are merged and stored iteratively.
[0014] As a specific implementation method of this application, constructing a knowledge graph is specifically as follows: Extracting text from different types of documents and code files, and parsing the text to obtain a long text including project documents and project codes; In the indexing stage, based on the long text, LLM is used to automatically construct a knowledge graph and extract corresponding nodes, edges and covariates; The community discovery technology is used to divide the entire knowledge graph constructed by LLM into subgraphs, and LLM is used to summarize and conclude the subgraphs from the bottom up.
[0015] As a specific implementation of the present application, multiple search methods are used to search the code generation request separately, specifically: Performing vector conversion on the code generation request using the Embedding model to obtain a conversion result, and calling the vector database to perform vector retrieval to obtain a vector retrieval result; Performing entity recognition on the code generation request to obtain a first entity keyword, and calling the index file to perform a full-text search to obtain a full-text search result; Entity recognition is performed on the code generation request to obtain a second entity keyword, and the knowledge graph is called for retrieval to obtain a knowledge graph retrieval result.
[0016] As a specific implementation of the present application, multiple search results are merged to obtain a fusion result, which is specifically: The vector retrieval results, full-text retrieval results and knowledge graph retrieval results are fused based on vector similarity matching or a word embedding model to obtain a fusion result.
[0017] Among them, the fusion processing is performed based on vector similarity matching, specifically: Vectorize each item in the vector search result, the full-text search result, and the knowledge graph search result to obtain multiple results; Compare the similarity of multiple results and take the original search results corresponding to the top N items as the final fusion results.
[0018] In the second aspect, an embodiment of the present invention further provides a model end, comprising a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method described in the first aspect above.
[0019] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect.
[0020] The implementation of the embodiment of the present invention has the following advantages:
[0021] (1) The embodiment of the present invention integrates at least two of the three retrieval technologies of knowledge graph, vector retrieval and full-text retrieval, and obtains the structure and similar text information in the technical documents and engineering codes in software development for code generation and completion, which significantly improves the quality of code generation and completion. In the technical solutions before the present invention, only the model's own capabilities are used to generate code, or one of the three retrieval technologies is used in combination with the code model to generate code. Compared with the method of the present invention, the traditional solution obtains insufficient retrieval information, resulting in the quality of generated or completed code being inferior to that of the present invention.
[0022] (2) In the vector retrieval technical solution, the present invention proposes a code block segmentation technical solution, which specifically uses a function-level segmentation and merging method to segment code blocks of various programming languages, effectively improving the accuracy of vector retrieval results using natural language code retrieval.
[0023] (3) The embodiment of the present invention proposes a technical method for fusing vector retrieval results, full-text retrieval results and knowledge graph retrieval results, which further improves the quality of the final retrieval result fusion, ensures the authenticity and accuracy of the final retrieval results before being applied to the code generation model, and improves the effect of code generation and completion. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the specific implementation of the present invention or the technical solution in the prior art, the drawings required for use in the specific implementation or the description of the prior art will be briefly introduced below.
[0025] Figure 1 It is a flow chart of a code generation method based on a large code generation model in the prior art;
[0026] Figure 2 It is a flow chart of a code generation method based on RAG technology in the prior art;
[0027] Figure 3 This is a main flow chart of a code processing method integrating multiple retrieval methods provided by an embodiment of the present invention;
[0028] Figure 4 yes Figure 3 Another flow chart of the method shown;
[0029] Figure 5 It is a structural diagram of the model end provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0032] Based on the situation mentioned in the background technology, if code generation can be combined with the corresponding requirements, interface design and other document information in the project development design documents, as well as similar code snippets, function calls and called code snippets in the project code, the generated code will be more closely integrated with the business, and the code adoption rate will be significantly improved. Therefore, the embodiment of the present invention focuses on this technical difficulty and proposes a code generation technical solution based on a code generation model and knowledge graph enhancement.
[0033] Please refer to Figure 3 and Figure 4 , is a code processing method integrating multiple search methods provided by an embodiment of the present invention. As shown in the figure, the method may include the following steps:
[0034] S1, build vector database, index file and knowledge graph.
[0035] 1. Construction of vector database
[0036] (1) Data preparation, parsing project documents and project codes: extracting text from different types of documents and code files.
[0037] (2) Text segmentation: segment the parsed long text into small blocks, which are usually called "chunks" for model processing. The window size and overlapping parts need to be considered during segmentation to preserve the coherence of the text. In the embodiment, function-level and class-level code segmentation are used, and the specific implementation process is as follows:
[0038] a. Set the first line mark array of the retrieval function Set the characteristic strings of the implementation codes of functions and classes in the implementation code files of various types of programming languages, and store them in their respective arrays, which are recorded as Taking Java as an example, the corresponding Set to: [ "\nclass", "\npublic class", "\nprivate static class", "\n\n\n public ", "@Override\n public ", "@Override\n\tpublic ", "@Override\n public ", "\n public void ", "\n public static ", "\n public interface ", "\n\n\n private ", "\n private void ", "\n private boolean ", ]
[0039] The above Java language The basis for setting is: it can effectively divide each function or class into chunks.
[0040] b. Merge comments of functions and classes.
[0041] Read the contents of various types of code files, and then use the corresponding programming language constructed in step a above To search based on, confirm the first line position of the function and set it to (In the current code text The first line of a function is a line). Then recursively search the previous line to confirm whether it is a code comment. If so, set the comment line as the first line of the code until a non-comment line is found, thereby confirming the final first line of the code. That is, the line position is used as the basis for segmentation, and the slice segmentation is performed, and the result is stored in an array. The segmented code block result is recorded as .
[0042] chunks Merge. Statistics array The number of lines of each element (text block) in the code block. If the number of lines is less than 10 (here 10 is an empirical value and can be adjusted), it is merged with the next element. In this way, small segmented blocks are merged and stored. The quality of code block segmentation affects the subsequent vectorized retrieval effect. This strategy can effectively improve the accuracy of vector retrieval results.
[0043] c. Use the Embedding model to convert text into vector form to form a vector database. These vectors can capture the semantic information of the text and represent it in the vector space.
[0044] (II) Construction of index files
[0045] The construction of index files is to prepare for subsequent full-text search. Full-text search is also called traditional keyword search, and index construction is generally divided into two steps:
[0046] (1) Data preparation, parsing project documents and project codes: extracting text from different types of documents and code files.
[0047] (2) Index construction: In traditional search, you first need to build an index, usually an inverted index, which records the location where each word appears in the document.
[0048] 3. Construction of Knowledge Graph
[0049] (1) Data preparation, parsing project documents and project codes: extracting text from different types of documents and code files.
[0050] (2) In the indexing phase, LLM is used to automatically construct a knowledge graph and extract corresponding nodes (such as entities), edges (such as relationships), and covariates (such as claims).
[0051] (3) Use community discovery technology (such as the Leiden algorithm) to divide the entire knowledge graph into subgraphs, and then use LLM to summarize and conclude the subgraphs from the bottom up.
[0052] Through the implementation of the above three retrieval processes, the corresponding vector knowledge base, full-text index file and knowledge graph are constructed for the retrieval of similar information in the subsequent code generation context.
[0053] S2, receiving a code generation request sent by the auxiliary coding software front end.
[0054] In specific implementation, the auxiliary coding software front end transmits a code generation request to the model end (the execution environment of the code generation / completion solution provided in the embodiment of the present invention is the model end), which is represented by Q, where Q is the code context and code context of the code area to be generated.
[0055] S3, using multiple search methods to search the code generation request separately to obtain multiple search results.
[0056] That is, the code generation request is searched using the vector search method, the full-text search method and the knowledge graph search method. It should be noted that this embodiment combines the above three search methods, but in actual applications, it is possible to consider using only two of them, such as a technical solution that combines knowledge graph search and full-text search or a technical solution that combines knowledge graph search and full-text search.
[0057] In specific implementation, the process of performing three types of retrieval is as follows:
[0058] (1) Vector search
[0059] Convert Q into a vector using the embedding model, and then perform vector search to obtain the vector search result. .
[0060] (2) Full-text search
[0061] Perform entity recognition on the Q content, and then use the obtained entity keywords to perform full-text search to obtain full-text search results .
[0062] (3) Knowledge graph retrieval
[0063] Perform entity recognition on the Q content, and then use the corresponding knowledge graph to search and obtain the search results .
[0064] S4, fusing multiple search results to obtain a fusion result.
[0065] In specific implementation, this embodiment adopts the method based on vector similarity matching for fusion, but other implementation schemes can be used to achieve similar effects. For example, text vectorization model (also called word embedding model) and similarity matching algorithm, common text vectorization models include Word2Vec, M3E, BGE, etc., and common similarity matching algorithms include Euclidean distance, word shift distance (WMD), etc.
[0066] Specifically, the final retrieval fusion result is obtained The process is:
[0067] (1) , , The results in are vectorized. Among them, , It is in array form, and each item is vectorized to extract Vectorize relational text.
[0068] (2) Compare the vectorized multiple items for similarity and take the original search results corresponding to the first N items, where N can be flexibly configured according to the max_token of the actual code generation model and is set to 3 by default.
[0069] (3) Fusion search results And Q in step (1) is passed into the prompt template to form a new code generation prompt word , where the prompt template is a pre-set default prompt word template.
[0070] S5, passing the code generation request and the fusion result into prompt to form a new code generation prompt word.
[0071] Among them, the prompt template is a pre-set default prompt word template.
[0072] S6, inputting the new code generation prompt word into the code generation model to obtain the code generation result or the code completion result.
[0073] S7, returning the code generation result or the code completion result to the front-end interface of the auxiliary coding software for display.
[0074] The advantages of implementing the code processing method integrating multiple search methods provided in the embodiment of the present invention are as follows:
[0075] (1) The embodiment of the present invention integrates at least two of the three retrieval technologies of knowledge graph, vector retrieval and full-text retrieval, and obtains the structure and similar text information in the technical documents and engineering codes in software development for code generation and completion, which significantly improves the quality of code generation and completion. In the technical solutions before the present invention, only the model's own capabilities are used to generate code, or one of the three retrieval technologies is used in combination with the code model to generate code. Compared with the method of the present invention, the traditional solution obtains insufficient retrieval information, resulting in the quality of generated or completed code being inferior to that of the present invention.
[0076] (2) In the vector retrieval technical solution, the present invention proposes a code block segmentation technical solution, which specifically uses a function-level segmentation and merging method to segment code blocks of various programming languages, effectively improving the accuracy of vector retrieval results using natural language code retrieval.
[0077] (3) The embodiment of the present invention proposes a technical method for fusing vector retrieval results, full-text retrieval results and knowledge graph retrieval results, which further improves the quality of the final retrieval result fusion, ensures the authenticity and accuracy of the final retrieval results before being applied to the code generation model, and improves the effect of code generation and completion.
[0078] Based on the same inventive concept, an embodiment of the present invention also provides a code processing system integrating multiple retrieval methods, including an auxiliary coding software front end and a model end. Figure 5 As shown, the model end may include: one or more processors 101, one or more input devices 102, one or more output devices 103 and a memory 104, wherein the processors 101, input devices 102, output devices 103 and memory 104 are interconnected via a bus 105. The memory 104 is used to store a computer program, wherein the computer program includes program instructions, and the processor 101 is configured to call the program instructions to execute the method of the above method embodiment.
[0079] It should be understood that in the embodiment of the present invention, the processor 101 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0080] The input device 102 may include a keyboard, etc., and the output device 103 may include a display (LCD, etc.), a speaker, etc.
[0081] The memory 104 may include a read-only memory and a random access memory, and provide instructions and data to the processor 101. A portion of the memory 104 may also include a non-volatile random access memory. For example, the memory 104 may also store information about the device type.
[0082] In a specific implementation, the processor 101, input device 102, and output device 103 described in the embodiment of the present invention can execute the implementation method described in the embodiment of the code processing method integrating multiple retrieval methods provided in the embodiment of the present invention, which will not be repeated here.
[0083] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the code processing method integrating multiple retrieval methods is implemented.
[0084] The computer-readable storage medium may be an internal storage unit of the system described in any of the foregoing embodiments, such as a hard disk or memory of the system. The computer-readable storage medium may also be an external storage device of the system, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the system. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the system and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the system. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0085] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0086] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0087] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0088] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0090] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A code processing method integrating multiple retrieval methods, characterized in that: include: Receiving a code generation request sent by the auxiliary coding software front end; the code request includes a code context and a code context of the code area to be generated; The code generation request is searched separately using multiple search methods to obtain multiple search results; the multiple search methods include at least two of vector search, full-text search and knowledge graph search; the multiple search results include at least two of vector search results, full-text search results and knowledge graph search results; Fusing the multiple search results to obtain a fusion result; The code generation request and the fusion result are passed into prompt to form a new code generation prompt word; Input the new code generation prompt word into the code generation model to obtain the code generation result or code completion result; The code generation result or code completion result is returned to the interface of the auxiliary coding software front end for display.
2. The code processing method according to claim 1, characterized in that: Before receiving the code generation request sent by the auxiliary coding software front end, the method further includes: Build vector database, index file and knowledge graph.
3. The code processing method according to claim 2, characterized in that: The specific steps of building a vector database are as follows: Extracting text from different types of documents and code files, and parsing the text to obtain a long text including project documents and project codes; The long text is segmented by using a function level and a class level to obtain segmented block texts; Use the Embedding model to convert the segmented block text into vector form to form a vector database.
4. The code processing method according to claim 3, characterized in that: The long text is segmented using function level and class level methods, specifically: Set the characteristic strings of the implementation codes of functions and classes in the implementation code files of various types of programming languages, and store them in their respective arrays. The arrays are recorded as ; Read the contents of various types of code files in arrays To search based on, confirm the first line position of the function and set it to ; Recursively search the previous line to confirm whether it is a code comment. If so, set the comment line as the first line of the code until a non-comment line is found, thereby confirming the final first line of the code and using this line position as the basis for segmentation. Slice segmentation is performed and the result is recorded as And store it into an array middle; Statistics array The number of rows of each element in . If the number of rows is lower than the set value, it is merged with the next element. In this way, the small split blocks are merged and stored iteratively.
5. The code processing method according to claim 2, characterized in that: The specific steps of building a knowledge graph are as follows: Extracting text from different types of documents and code files, and parsing the text to obtain a long text including project documents and project codes; In the indexing stage, based on the long text, LLM is used to automatically construct a knowledge graph and extract corresponding nodes, edges and covariates; The community discovery technology is used to divide the entire knowledge graph constructed by LLM into subgraphs, and LLM is used to summarize and conclude the subgraphs from the bottom up.
6. The code processing method according to claim 2, characterized in that: The code generation request is searched separately using multiple search methods, specifically: Performing vector conversion on the code generation request using the Embedding model to obtain a conversion result, and calling the vector database to perform vector retrieval to obtain a vector retrieval result; Performing entity recognition on the code generation request to obtain a first entity keyword, and calling the index file to perform a full-text search to obtain a full-text search result; Entity recognition is performed on the code generation request to obtain a second entity keyword, and the knowledge graph is called for retrieval to obtain a knowledge graph retrieval result.
7. The code processing method according to claim 6, characterized in that: The multiple search results are merged to obtain a fusion result, which is specifically: The vector retrieval results, full-text retrieval results and knowledge graph retrieval results are fused based on vector similarity matching or a word embedding model to obtain a fusion result.
8. The code processing method according to claim 7, characterized in that: Fusion processing is performed based on vector similarity matching, specifically: Vectorize each item in the vector search result, the full-text search result, and the knowledge graph search result to obtain multiple results; Compare the similarity of multiple results and take the original search results corresponding to the top N items as the final fusion results.
9. A model end, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Retrieval enhancement generation system and method based on knowledge graph
CN117973540A
Question and answer model-based code completion method, code completion terminal, medium and system
CN118170354A
RAG mixed retrieval method and device for improving accuracy of large language model
CN118277522A
Multi-language source code search engine
US20230040412A1
Cited By
Database code extraction method and system based on large language model rapid screening
CN119226380A
Large model driven local code warehouse-based programming method and device
CN119396407A
A large model driven programming method and device based on local code repository
CN119396407B
Code generation method and system based on artificial intelligence
CN120803432A
Code query method and device, electronic equipment and storage medium
CN121524211A
