ramchennuru

Results 12 comments of ramchennuru

db_chain = langchain.SQLDatabaseChain(database=db,llm= llm, verbose=True, return_intermediate_steps=True) response = db_chain("my question goes here") intermediateSteps=response["intermediate_steps] answer=response["result"] Since we are expecting two outputs that are intermediate steps and results,So we can't get by...

`Snapshot created successfully {'result': {'name': 'test_collection-8355533117942707-2024-01-19-14-08-07.snapshot', 'creation_time': None, 'size': 67518464}, 'status': 'ok', 'time': 0.376291927}` the above output that I was getting if I run the above script

while iam hitting get snapshot api getting below error `index-9558a693.js:40 TypeError: Cannot read properties of null (reading 'valueOf') at index-9558a693.js:1502:11214 at Array.map () at XMe (index-9558a693.js:1502:11132) at EX (index-9558a693.js:38:19598) at...

Hey @drazvan , Chat models support AzureChatOpenAI() function from langchain. Tried below code and it worked for me: **from langchain_openai import AzureChatOpenAI from nemoguardrails import LLMRails, RailsConfig llm = AzureChatOpenAI(...

@drazvan Good to close this issue.

**My code:** from guidance import models, gen, user, assistant import guidance @guidance **def response(lm, prompt): with user(): lm += prompt with assistant(): lm += gen("""\ ```json {{ "name": "{{name}}", "age":...

Hey @drazvan , I was able to run only output guard. **output_guard_test.py:** from nemoguardrails import LLMRails, RailsConfig config = RailsConfig.from_path("./config") rails = LLMRails(config, verbose=True) res = rails.generate( messages=[ {"role": "user",...

@drazvan Good to close the issue.

Hi @Pouyanpi , iam also getting the same error when I was mentioned base_url: http://localhost:11434/api/generate. But,when I came to the issues I found this and updated to `base_url: http://localhost:11434` solved...