Chris M. (Michael) Pérez
Chris M. (Michael) Pérez
@koliapp2019 @AsyncWeb There is a way to access any database using the following library, here the documentation: [js.langchain.com](https://js.langchain.com/docs/modules/chains/other_chains/sql) My example is limited to asking/answering a table, Right now I’m using...
@koliapp2019 The library does it for you, you just have to add the env `OPENAI_API_KEY` or set the key in the `openAIApiKey` property. Then you're good to go! ```ts llm:...
@koliapp2019 The code is adapted for express but you can generate a custom strapi controller, use the whole body of the code as reference. , But you have to specify...
@whitn152 @Parrurox This library required a re-implementation from scratch. I'll be working on something new, but it will take time.
@dosue The **langchain_chat_histories** table initially does not exist. **langchain_chat_histories** is the table that should contain: ```sql id SERIAL PRIMARY KEY, session_id VARCHAR(255) NOT NULL, message JSONB NOT NULL ```
@dosue Your solution is not correct.I want to consume the data (ask questions) from the **directories** table. But at the same time the langchain_chat_histories table doesnot exist.
@dosue Your solution is not correct. The **tableName** property is used to specify the table that I want to use to consume data. But the **langchain_chat_histories** table must be created...
@dosue The directory table contains these columns: **id, title, description, phone, created_at, updated_at, published_at, created_by_id, updated_by_id**
@MJDeligan Thanks for the clarification. And how can I interact with the data of a particular table?