#include "components/history_embeddings/mock_embedder.h"
#include "base/task/sequenced_task_runner.h"
#include "components/history_embeddings/vector_database.h"
namespace history_embeddings {
namespace {
constexpr int64_t kModelVersion = …;
constexpr size_t kOutputSize = …;
constexpr size_t kMockPassageWordCount = …;
Embedding ComputeEmbeddingForPassage(const std::string& passage) { … }
std::vector<Embedding> ComputeEmbeddingsForPassages(
const std::vector<std::string>& passages) { … }
}
MockEmbedder::MockEmbedder() = default;
MockEmbedder::~MockEmbedder() = default;
void MockEmbedder::ComputePassagesEmbeddings(
PassageKind kind,
std::vector<std::string> passages,
ComputePassagesEmbeddingsCallback callback) { … }
void MockEmbedder::SetOnEmbedderReady(OnEmbedderReadyCallback callback) { … }
}