Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / method
__init__
codeintel.embeddings.HttpEmbedder.__init__
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 |
|---|---|---|
| _use_prefixes | embeddings.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| HttpEmbedder | embeddings.py | same file |
codeintel.embeddings.HttpEmbedder.__init__backend/app/codeintel/embeddings.py, lines 242–249Open source
def __init__(self, base_url: str, model_name: str, token: str | None = None, timeout: float = 30.0): self.base_url = base_url.rstrip("/") self.model_name = model_name self.prefixes = _use_prefixes(model_name) self.model_id = model_name + ("+prefix" if self.prefixes else "") self.timeout = timeout self._headers = {"Authorization": f"Bearer {token}"} if token else {} self._batch_supported: bool | None = NoneWhat the index recorded
- Signature
def __init__(self, base_url: str, model_name: str, token: str | None, timeout: float):- File
backend/app/codeintel/embeddings.py- Lines
- 242–249
- Parser
- python-ast
- Git blob
df7f8202f23ca6ad2c57aca5f09b435eb6486d79- Call sites
- 2 named, 1 resolved, 1 left unlinked
