Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / method

embed_query

codeintel.embeddings.OnnxEmbedder.embed_query

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Inside (1)
SymbolFileResolved by
OnnxEmbedderembeddings.pysame file
codeintel.embeddings.OnnxEmbedder.embed_querybackend/app/codeintel/embeddings.py, lines 341–342Open source
    def embed_query(self, text: str) -> list[float]:        return self.encode_raw([self.query_prefix + text])[0]

What the index recorded

Signature
def embed_query(self, text: str) -> list[float]:
File
backend/app/codeintel/embeddings.py
Lines
341–342
Parser
python-ast
Git blob
df7f8202f23ca6ad2c57aca5f09b435eb6486d79
Call sites
1 named, 0 resolved, 1 left unlinked

Read it on GitHub at this commit