MCPcopy
hub / github.com/run-llama/notebookllama / _create_table

Method _create_table

src/notebookllama/documents.py:68–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self._connection = self._engine.connect()
67
68 def _create_table(self) -> None:
69 self._table = Table(
70 self.table_name,
71 self.metadata,
72 Column("id", Integer, primary_key=True, autoincrement=True),
73 Column("document_name", Text),
74 Column("content", Text),
75 Column("summary", Text),
76 Column("q_and_a", Text),
77 Column("mindmap", Text),
78 Column("bullet_points", Text),
79 )
80 self._table.create(self.connection, checkfirst=True)
81
82 def put_documents(self, documents: List[ManagedDocument]) -> None:
83 for document in documents:

Callers 4

tableMethod · 0.95
get_documentsMethod · 0.95
get_namesMethod · 0.95
test_document_managerFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_document_managerFunction · 0.76