Bundle
Google Gemini API client. Supports text generation, multimodal inputs (image, audio, video), chat sessions, function calling, and caching. Set GOOGLE_API_KEY before use. Compile with -lib gemini.
Model->TaskType
What an embedding will be used for, which Gemini uses to tune it.
Items
- TASK_TYPE_UNSPECIFIED — No task type is sent.
- RETRIEVAL_QUERY — A search query.
- RETRIEVAL_DOCUMENT — A document to be searched; it may carry a title.
- SEMANTIC_SIMILARITY — Text to compare for similarity.
- CLASSIFICATION — Text to classify.
- CLUSTERING — Text to cluster.