Back to the room

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

Code Observatory / function

resolve_backend

codeintel.embeddings.resolve_backend

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 (1)
SymbolFileResolved by
get_embedderembeddings.pysame file
Inside (1)
SymbolFileResolved by
embeddingsembeddings.pysame file
codeintel.embeddings.resolve_backendbackend/app/codeintel/embeddings.py, lines 467–472Open source
def resolve_backend(backend: str, mode: str, edge_url: str | None) -> str:    if backend != "auto":        return backend    if mode == "CLOUD":        return "http" if edge_url else "none"    return "sentence-transformers"

What the index recorded

Signature
def resolve_backend(backend: str, mode: str, edge_url: str | None) -> str:
File
backend/app/codeintel/embeddings.py
Lines
467–472
Parser
python-ast
Git blob
df7f8202f23ca6ad2c57aca5f09b435eb6486d79
Outside this subset
1 more edges reach code outside the graph shown here

Read it on GitHub at this commit