
Omni Python Driver
Omni topics can now be queried from Python notebooks via a new Arrow-protocol driver, letting users use Omni as a portable semantic layer from any Python environment.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I have a short demonstration. I'll share my screen with everyone. Class. So, wait. Let's go. Ahem. I have my own sand copy here. I have one topic— ordered items for my e-commerce data . Now I can go to many other tools and query my topics in Omni. This is just an example. This is the Google Colab Python notebook.
Just like any other Python notebook. You can see that I am connecting to my Omni instance. I am providing an API key that you cannot see. I also provide the model ID. And then I create a connection. And I'll run it. Class. Connection established. And now I can just pass it OmniSQL and it will give me a result set.
The cool thing is that it uses the Arrow protocol, so it is extremely productive and efficient. And so, you see, I asked the AI to write a small routine to get the data, plot it, and also display a table. Here, please. And, you know, obviously the cool thing here is that I can go and, let's see, create a new query here in Omni.
Ahem. I'll keep it simple, but it could be any Omni query I suppose. Stephen, correct me if I'm wrong. I can move on to SQL. Copy it. Paste here into this little startup function. And I can run it. It just shows me a table with the results. So, now you can use Omni as your semantic layer with Python.
Ahem.