Gughanathan M

Results 11 comments of Gughanathan M

@bleschunov This article will give the solution - https://python.langchain.com/docs/modules/agents/how_to/add_memory_openai_functions Sample ```py from langchain import SQLDatabase, SQLDatabaseChain, from langchain.agents import initialize_agent, Tool from langchain.agents import AgentType from langchain.chat_models import ChatOpenAI from...

> @gugupy I tried this out and this does not work. Works for me. It can remember the previous query. Ask your query? `Is there any realm named demo?` ```...

@ameerhakme Try creating `SQLDatabaseChain` as below. When creating instance of `SQLDatabaseChain.from_llm` LLMChain instantiate without memory, and prompt template with history keyword. ``` python llm = ChatOpenAI(temperature=0, model=openai_model_name, verbose=verbose) db =...

@panyamravi You can avoid syntax error by improving prompt something like `Do not give invalid SQL queries` or use parameters `use_query_checker` and `query_checker_prompt` in the Chain.

> @gugupy : I tried adding query checker as well but no luck. if I use, SQLDBChain without query_checker set to True its working OK but memory is not preserved....

If you have made custom oauth configuration make sure you have called the userinfo api for keycloak like below, ```py self.appbuilder.sm.oauth_remotes[provider].get("openid-connect/userinfo") ```

You can achive by extending the `AuthOAuthView.login` method and add below line start of the login view. ```py if provider is None: providers = [k for k in self.appbuilder.sm.oauth_remotes.keys()] if...

@virtualb0x Extend IndexView and redirect to login page then add FAB_INDEX_VIEW in the config.

Hi @dpgaspar, Could you please have a look at this pull request?

@Yoyasp Hi! Thanks for letting me know about the pull request.I was managed to achieve this by overwrite navbar template.