# US 2026/0244630 A1 · Similarity matching using compute-in-memory

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0244630 A1
- Document ID: US20260244630A1
- Status: Published application
- Kind: A1
- Application number: 19/542,383
- Filed: 2026-02-17
- Published: 2026-08-20
- Earliest claimed: 2025-02-18
- Assignees: OpenAI OpCo, LLC
- Applicants: OpenAI Opco, LLC
- Inventors: Mohammed Elneanaei Abdelmoneem FOUDA
- Web page: https://patentgrep.com/patent/US20260244630A1

## CPC

- G06F 16/2468: {Fuzzy queries}
- G06F 16/3347: {using vector based model}
- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 3/045: Combinations of networks
- G06N 3/063: using electronic means
- G06N 3/08: Learning methods
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Similarity matching operations in retrieval-augmented generation (RAG) systems face challenges in balancing retrieval latency, memory bandwidth, and energy efficiency. To address these challenges, the disclosed technology provides a memory system architecture including similarity circuitry configured to perform similarity matching within or near the memory. The similarity circuitry receives a search vector, determines similarities between the search vector and stored embedding vectors, identifies one or more matched embedding vectors based on the similarities, and outputs information corresponding to the matched embedding vectors. Only the matched embedding vectors are transferred out of the memory system, substantially reducing data movement compared to conventional approaches. By performing similarity matching within or near the memory, the disclosed technology improves energy efficiency and reduces latency for retrieval operations.

## Claims

### Claim 1

A memory system comprising:
memory circuitry configured to store a plurality of embedding vectors; and
similarity circuitry configured to:
receive a search vector,
determine similarities between the search vector and the plurality of embedding vectors,
identify one or more matched embedding vectors based on the similarities, and
output information corresponding to the one or more matched embedding vectors.

### Claim 2 (depends on 1)

The memory system of claim 1, wherein the memory circuitry comprises a plurality of memory banks.

### Claim 3 (depends on 1)

The memory system of claim 1, wherein the similarity circuitry is further configured to identify a predetermined number of matched embedding vectors with highest similarities to the search vector.

### Claim 4 (depends on 1)

The memory system of claim 1, wherein the similarity circuitry comprises a plurality of similarity circuits configured to receive the search vector.

### Claim 5 (depends on 2)

The memory system of claim 2, wherein the memory circuitry comprises at least one memory unit, and wherein the similarity circuitry is disposed within the at least one memory unit.

### Claim 6 (depends on 5)

The memory system of claim 5, wherein the similarity circuitry is disposed at read ports of the plurality of memory banks.

### Claim 7 (depends on 6)

The memory system of claim 6, wherein the plurality of memory banks is configured to be searched in parallel, wherein at least a subset of the plurality of memory banks are associated with respective similarity circuits.

### Claim 8 (depends on 2)

The memory system of claim 2, further comprising a logic die, wherein the memory circuitry comprises a plurality of memory units, and wherein the logic die is configured to receive the plurality of embedding vectors from the plurality of memory units.

### Claim 9 (depends on 8)

The memory system of claim 8, wherein the plurality of memory units and the logic die are arranged in a stacked configuration.

### Claim 10 (depends on 9)

The memory system of claim 9, wherein the similarity circuitry is disposed within the logic die.

### Claim 11 (depends on 9)

The memory system of claim 9, wherein the plurality of memory units and the logic die comprise a high bandwidth memory.

### Claim 12 (depends on 10)

The memory system of claim 10, wherein the similarity circuitry is configured to determine the similarities in parallel for the plurality of embedding vectors stored across the plurality of memory units.

### Claim 13 (depends on 1)

The memory system of claim 1, further comprising a processor coupled to the similarity circuitry and configured to receive the one or more matched embedding vectors and perform inference using the one or more matched embedding vectors.

### Claim 14 (depends on 1)

The memory system of claim 1, wherein the memory system is configured to perform retrieval in a retrieval-augmented generation system.

### Claim 15 (depends on 1)

The memory system of claim 1, wherein the search vector comprises an embedded representation of a query.

### Claim 16 (depends on 1)

The memory system of claim 1, wherein the plurality of embedding vectors comprises embedded representations of document chunks.

### Claim 17

A method comprising:
storing a plurality of embedding vectors in memory circuitry;
receiving, by similarity circuitry, a search vector;
determining, by the similarity circuitry, similarities between the search vector and the plurality of embedding vectors;
identifying one or more matched embedding vectors based on the similarities; and
outputting information corresponding to the one or more matched embedding vectors.

### Claim 18 (depends on 17)

The method of claim 17, wherein identifying the one or more matched embedding vectors comprises identifying a predetermined number of embedding vectors with highest similarities to the search vector.

### Claim 19 (depends on 17)

The method of claim 17, further comprising:
distributing the search vector to a plurality of similarity circuits; and
transferring the one or more matched embedding vectors to a processor.

### Claim 20

A memory system, comprising:
a plurality of memory banks comprising read ports and configured to store a plurality of embedding vectors; and
similarity circuitry disposed at the read ports of the plurality of memory banks, the similarity circuitry configured to:
receive a search vector;
for at least a subset of the plurality of memory banks, determine one or more similarities between the search vector and one or more embedding vectors read from a read port of that memory bank;
based on the one or more determined similarities, identify one or more matched embedding vectors; and
output, from the memory system, information corresponding to the one or more matched embedding vectors.
