Skip to content

This example demonstrates how to create a chatbot that can use the Tavily search engine to look up information on the web.

Notifications You must be signed in to change notification settings

anmiralles/quarkus-ai-llm-websearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web search example

This example demonstrates how to create a chatbot that can use the Tavily search engine to look up information on the web.

Running the example

A prerequisite to running this example is to provide your OpenAI and Tavily API keys.

export QUARKUS_LANGCHAIN4J_TAVILY_API_KEY=<your-tavily-api-key>

Then, simply run the project in Dev mode:

./mvnw compile quarkus:dev

Using the example

Open your browser and navigate to http://localhost:8080. Click the red robot in the bottom right corner to open the chat window.

quarkus-ai-llm-summarizer

This project uses Quarkus to create a summarizer REST service for test and files. It uses Ollama (llama3.1) LLM in order to do the task.

Running the application in dev mode

You can run your application in dev mode that enables live coding using:

./mvnw compile quarkus:dev

Related Guides

  • LangChain4j Ollama (guide): Provides the basic integration of Ollama with LangChain4j

About

This example demonstrates how to create a chatbot that can use the Tavily search engine to look up information on the web.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published