File size: 513 Bytes
cc3c01c
1e333df
898ff0f
09672b1
cc3c01c
 
 
 
 
 
 
 
 
 
142c0e8
 
 
6f62ba7
142c0e8
38e58d7
cc3c01c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import lumen.ai as lmai
import panel as pn
from lumen.sources.duckdb import DuckDBSource

pn.extension(
    "tabulator",
    "codeeditor",
    "vega",
    "filedropper",
    inline=False,
    template="fast",
    notifications=True,
)

lmai.memory["current_source"] = DuckDBSource(
    tables=["olympic_hosts.csv"],
    uri=":memory:",
    initializers=["SET home_directory='/tmp';", "INSTALL httpfs;", "LOAD httpfs;"],
)
llm = lmai.llm.OpenAI()
assistant = lmai.ExplorerUI(llm=llm)
assistant.servable("Lumen.ai")