MCPcopy Create free account
hub / github.com/Forethought-Technologies/AutoChain / DummyEncoder

Class DummyEncoder

test_utils/pinecone_mocks.py:35–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35class DummyEncoder(BaseLanguageModel):
36 def generate(
37 self,
38 messages: List[BaseMessage],
39 functions: Optional[List[Tool]] = None,
40 stop: Optional[List[str]] = None,
41 ) -> LLMResult:
42 pass
43
44 def encode(self, texts: List[str]) -> EmbeddingResult:
45 return EmbeddingResult(
46 texts=texts,
47 embeddings=[
48 [-0.025949304923415184, -0.012664584442973137, 0.017791053280234337]
49 ],
50 )
51
52
53@pytest.fixture

Calls

no outgoing calls