const inputText = "Ollama is an AI company that "const completion = await llm.invoke(inputText)completion
I think you meant to say "Olivia" instead of "Ollama". Olivia is not a well-known AI company, but there are several other AI companies with similar names. Here are a few examples:* Oliva AI: A startup that uses artificial intelligence to help businesses optimize their operations and improve customer experiences.* Olivia Technologies: A company that develops AI-powered solutions for industries such as healthcare, finance, and education.* Olivia.ai: A platform that uses AI to help businesses automate their workflows and improve productivity.If you meant something else by "Ollama", please let me know and I'll do my best to help!
import { Ollama } from "@langchain/ollama";import * as fs from "node:fs/promises";const imageData = await fs.readFile("../../../../../examples/hotdog.jpg");const model = new Ollama({ model: "llava",}).bind({ images: [imageData.toString("base64")],});const res = await model.invoke("What's in this image?");console.log(res);
The image shows a hot dog placed inside what appears to be a bun that has been specially prepared to resemble a hot dog bun. This is an example of a creative or novelty food item, where the bread used for the bun looks similar to a cooked hot dog itself, playing on the name "hot dog." The image also shows the typical garnishes like ketchup and mustard on the side.