Skip to content

Commit ac4dbd1

Browse files
author
Telsho
committed
docs: removed reset db example
1 parent 0797f93 commit ac4dbd1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/getting_started.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ Next, we configure the LLM client and set up an in-memory SQLite database for th
7171
# Create an in-memory SQLite database engine
7272
engine = create_engine("sqlite:///:memory:")
7373
74-
def reset_database():
75-
SQLModel.metadata.drop_all(engine)
76-
SQLModel.metadata.create_all(engine)
74+
# Leave if you want the tables to be created if they do not exist
75+
SQLModel.metadata.create_all(engine)
7776
7877
Step 3: Initialize the Workflow Orchestrator
7978
--------------------------------------------
@@ -101,7 +100,6 @@ Now, we can feed unstructured text to the orchestrator. The `synthesize_and_save
101100
102101
async def main():
103102
text = "Gamer Mouse, $85.00, by SwiftClick. Specs: 16000 DPI, RGB Lighting."
104-
reset_database()
105103
with Session(engine) as session:
106104
await orchestrator.synthesize_and_save(
107105
input_strings=[text], db_session=session

0 commit comments

Comments
 (0)