-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adding azion edgesql integration to langchain-community #7344
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So sorry for the delay!
@@ -0,0 +1,53 @@ | |||
### Azion Edge SQL Retriever |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have this use the standard retriever template?
@@ -0,0 +1,39 @@ | |||
### Azion Edge SQL Vector Store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also need to add azion/sql
to peer and dev deps as shown here:
const similarityQuery = ` | ||
SELECT id, content, ${metadata.replace('hybrid', 'similarity')} | ||
FROM ${this.vectorTable} | ||
WHERE rowid IN vector_top_k('${this.vectorTable}_idx', vector('[${embeddedQuery}]'), ${rowsNumber}) ${filters} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we sanitize this better?
message: string; | ||
operation: string;} | undefined | ||
): Promise<[Document][]> { | ||
return Promise.resolve([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just throw in this case
* - "hybrid": Both vector and full-text search capabilities | ||
* @returns {Promise<AzionVectorStore>} A promise that resolves with the configured vector store instance | ||
*/ | ||
static async createVectorStore( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By convention have been calling async constructor methods .initialize
* - metadataItems: Optional metadata fields to include in the results | ||
* @returns A promise that resolves with the full-text search results when the search is complete. | ||
*/ | ||
async AzionFullTextSearch( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lower case for convention (also below)
Integrations added: