You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
519 B

from _arango import ArangoDB
arango = ArangoDB()
initiatives = [i for i in arango.db.collection("eu_initiatives").all()]
ordered_by_headline = sorted(initiatives, key=lambda x: x["headline"])
import env_manager
import os
from ollama import Client
import httpx
ollama = Client(
os.getenv("https://lasseedfast.se/api/chat/"),
auth=httpx.BasicAuth(username="lasse", password="p239q8wimerxr2m389"),
)
ollama.generate(
"What is the European Green Deal?"
) # This will generate a response from the LLM model