Skip to content

Commit

Permalink
fix: removed unnecessary examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Oct 11, 2023
1 parent c7e11aa commit 556695c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions docs/snippets/modules/chains/popular/sqlite.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import CodeBlock from "@theme/CodeBlock";
import SqlDBExample from "@examples/chains/sql_db.ts";
import SqlDBSqlOutputExample from "@examples/chains/sql_db_sql_output.ts";
import SqlDBSAPHANAExample from "@examples/chains/sql_db_saphana.ts";
import SqlDBSqlCustomPromptExample from "@examples/chains/sql_db_custom_prompt.ts";

This example uses Chinook database, which is a sample database available for SQL Server, Oracle, MySQL, etc.

Expand Down Expand Up @@ -40,15 +38,3 @@ const db = await SqlDatabase.fromDataSourceParams({
If desired, you can return the used SQL command when calling the chain.

<CodeBlock language="typescript">{SqlDBSqlOutputExample}</CodeBlock>

## SAP Hana

Here's an example of using the chain with a SAP HANA database:

<CodeBlock language="typescript">{SqlDBSAPHANAExample}</CodeBlock>

## Custom prompt

You can also customize the prompt that is used. Here is an example prompting the model to understand that "foobar" is the same as the Employee table:

<CodeBlock language="typescript">{SqlDBSqlCustomPromptExample}</CodeBlock>

0 comments on commit 556695c

Please sign in to comment.