How to set LLM enviroment when USE nxadb.Graph.chat()? #63
              
                Unanswered
              
          
                  
                    
                      qiangziakbar
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| After installing with  import os
os.environ["OPENAI_API_KEY"] = "sk-..."And then you can set the LLM Model using any of the  import nx_arangodb as nxadb
G = nxadb.Graph(...)
from langchain_openai import ChatOpenAI # for example
G.chat("hello", llm=ChatOpenAI(temperature=0, model_name="gpt-4")) | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
when use nxadb.Graph.chat("hello"), reports as below:
ModuleNotFoundError: LLM dependencies not installed. Install with pip install nx-arangodb[llm]
how to set api-key? how to set LLM model?
Beta Was this translation helpful? Give feedback.
All reactions