https://github.com/vanna-ai/vanna/blob/main/src/vanna/base/b...
And then of course once you have the SQL, you can put it in an interface where you the SQL can be run automatically and then get a chart etc.
441 karma · joined October 22, 2014
https://github.com/vanna-ai/vanna/blob/main/src/vanna/base/b...
And then of course once you have the SQL, you can put it in an interface where you the SQL can be run automatically and then get a chart etc.
When you snooze it for >=1 day, does it reappear at the time that it was snoozed or do the tasks somehow group into buckets where if you snooze all tasks that appear today for 1 day, they'll all appear tomorrow at the same time?
I pivoted in the reverse direction from:
https://github.com/pycob/pyvibe
To
Yeah, to me Haskell is the experimental forefront of programming language theory and the most developed concepts get incorporated into the actual programming languages over time.
It has worse generalization capabilities than even GPT-3.5 but actually does as well at GPT-4 when given contextually relevant examples selected from a large corpus of examples.
https://vanna.ai/blog/ai-sql-accuracy.html
This suggests to me that it needs longer prompts to avoid the hallucination problem that everyone else seems be experiencing.
Sadly the small form factor seems to be going away so I’m not really sure what my next phone will be.
You call vn.train(sql=...) on each individual SQL statement that you have.
What'll happen under the hood is the package will use the 10 most relevant SQL statement examples, 10 most relevant pieces of documentation, and 10 most relevant DDL statements.
If using 10 examples exceeds the (approximate) token limit for the model, it'll pare down to a smaller number that'll fit into the context limit.
In the meantime, this post we wrote might be interesting for you:
If you want to use a locally-hosted LLM, that's also possible by implementing the necessary abstract methods: https://vanna.ai/docs/vanna.html#open-source-and-extending
The set of larger SQL queries includes the initial static set but is brought into the prompt only if it's contextually relevant to the question. I know that's a confusing statement so let me know if that makes sense.
Package: https://github.com/vanna-ai/vanna
A paper we're just finished: https://github.com/vanna-ai/vanna/blob/main/papers/ai-sql-ac...
This is an example of using pgvector that might be relevant for your use case:
SELECT d.id, d.doc, 1 - (embedding <=> (SELECT embedding FROM documentation_embedding WHERE id = 1)) AS similarity FROM documentation_embedding de join documentation d on de.documentation_id = d.id ORDER BY similarity desc;