Figure2

VulnScan GPT: a new framework for smart contract vulnerability detection combining vector database and GPT model

Figure 2. We take a sol file in the project as an example, split it into n function-level code blocks, and vectorize them separately and store them in the vector database.