Back to the room

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

Code Observatory / method

_doc

codeintel.embeddings._PrefixMixin._doc

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

Called by (2)
SymbolFileResolved by
embed_documentsembeddings.pysame file
embed_documentsembeddings.pysame file
Inside (1)
SymbolFileResolved by
_PrefixMixinembeddings.pysame file
codeintel.embeddings._PrefixMixin._docbackend/app/codeintel/embeddings.py, lines 157–158Open source
    def _doc(self, text: str) -> str:        return f"search_document: {text}" if self.prefixes else text

What the index recorded

Signature
def _doc(self, text: str) -> str:
File
backend/app/codeintel/embeddings.py
Lines
157–158
Parser
python-ast
Git blob
df7f8202f23ca6ad2c57aca5f09b435eb6486d79

Read it on GitHub at this commit