Advertisement
karimmd

My Code

Sep 23rd, 2024 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. from paperqa import Settings, ask
  2.  
  3. local_llm_config = {
  4.     "model_list": [
  5.         {
  6.             "model_name": "ollama/llama3",
  7.             "litellm_params": {
  8.                 "model": "ollama/llama3",
  9.                 "api_base": "http://127.0.0.1:11434",
  10.             }
  11.         }
  12.     ]
  13. }
  14.  
  15. answer = ask(
  16.     "How the SDN controller works within FANET?",
  17.     settings=Settings(
  18.         llm="ollama/llama3",
  19.         llm_config=local_llm_config,
  20.         summary_llm="ollama/llama3",
  21.         summary_llm_config=local_llm_config,
  22.     ),
  23. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement