Class: Langchain::LLM::LlamaCppResponse

Inherits:
BaseResponse show all
Defined in:
lib/langchain/llm/response/llama_cpp_response.rb

Instance Attribute Summary

Attributes inherited from BaseResponse

#context, #model, #raw_response

Instance Method Summary collapse

Methods inherited from BaseResponse

#chat_completion, #chat_completions, #completion, #completion_tokens, #completions, #created_at, #initialize, #prompt_tokens, #total_tokens

Constructor Details

This class inherits a constructor from Langchain::LLM::BaseResponse

Instance Method Details

#embeddingObject



5
6
7
# File 'lib/langchain/llm/response/llama_cpp_response.rb', line 5

def embedding
  embeddings
end

#embeddingsObject



9
10
11
# File 'lib/langchain/llm/response/llama_cpp_response.rb', line 9

def embeddings
  raw_response.embeddings
end