How to make ur own local uncensored ai with google search function

Arbuscular

Arbuscular

Video Editor
Joined
May 15, 2025
Posts
1,300
Reputation
1,336
So u can search everything u want without needing to do jailbreak boring ahh prompts

First, u need to download ollama, an ollama uncensored model and serpapi

then u create an acc on serpapi site (https://serpapi.com)

then download vs studio code, create a file named main.py and put this code in (python)
from llm_axe.agents import OnlineAgent
from llm_axe.models import OllamaChat

# Initializes local ollama model
llm = OllamaChat(model="llama2-uncensored:latest")

# Creates an agent with internet acces using serpapi
online_agent = OnlineAgent(llm, search_provider="serpapi", api_key="your key")

# Defines the prompt
prompt = "What happened on 25/07/2025?"

# Searches and gets answer
resp = online_agent.search(prompt)
print(resp)

Now you open two cmds, in one u type "ollama serve" (starts the llm server), in the other u type py main.py.

Now to do other prompts just alter th prompt function

If u have any other questions ask it to chatgpt, im too lazy to write an actual thread
you can also change it to give it a gui, give it voice recognition so u speak and it answers, give it memory, etc etc.
 
I will maybe edit this thread or make other one so its an actual guide :unsure:
 

Similar threads

leF
Replies
56
Views
14K
gayspringtrap993
gayspringtrap993
D
Replies
23
Views
13K
Nihonz9
Nihonz9
D
Replies
29
Views
16K
clover
clover
thecel
Replies
80
Views
23K
DepthsOfDespair2020
DepthsOfDespair2020

Users who are viewing this thread

Back
Top