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 symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| embeddings | embeddings.py | same 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 textWhat the index recorded
- Signature
class _PrefixMixin:- File
backend/app/codeintel/embeddings.py- Lines
- 153–161
- Parser
- python-ast
- Git blob
df7f8202f23ca6ad2c57aca5f09b435eb6486d79
