Back to the room

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

Code Observatory / class

_PrefixMixin

codeintel.embeddings._PrefixMixin

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

Contains (2)
SymbolFileResolved by
_docembeddings.pysame file
_queryembeddings.pysame file
Inside (1)
SymbolFileResolved by
embeddingsembeddings.pysame file
codeintel.embeddings._PrefixMixinbackend/app/codeintel/embeddings.py, lines 153–161Open source
class _PrefixMixin:    model_name: str    prefixes: bool    def _doc(self, text: str) -> str:        return f"search_document: {text}" if self.prefixes else text    def _query(self, text: str) -> str:        return f"search_query: {text}" if self.prefixes else text

What the index recorded

Signature
class _PrefixMixin:
File
backend/app/codeintel/embeddings.py
Lines
153–161
Parser
python-ast
Git blob
df7f8202f23ca6ad2c57aca5f09b435eb6486d79

Read it on GitHub at this commit