-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add image embedding to azure index (#271)
## Purpose <!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? --> * ... ## Does this introduce a breaking change? <!-- Mark one with an "x". --> ``` [ ] Yes [ ] No ``` ## Pull Request Type What kind of change does this Pull Request introduce? <!-- Please check the one that applies to this PR using "x". --> ``` [ ] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe: ``` ## How to Test * Get the code ``` git clone [repo-address] cd [repo-name] git checkout [branch-name] npm install ``` * Test the code <!-- Add steps to run the tests suite and/or manually test --> ``` ``` ## What to Check Verify that the following are valid * ... ## Other Information <!-- Add any other helpful information that may be needed here. --> --------- Co-authored-by: David Pine <[email protected]>
- Loading branch information
1 parent
9543b54
commit f5b168f
Showing
37 changed files
with
739 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
18 changes: 17 additions & 1 deletion
18
app/functions/EmbedFunctions/Services/MilvusEmbedService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
|
||
namespace EmbedFunctions.Services; | ||
|
||
internal sealed class MilvusEmbedService : IEmbedService | ||
{ | ||
public Task<bool> EmbedBlobAsync(Stream blobStream, string blobName) => throw new NotImplementedException(); | ||
public Task CreateSearchIndexAsync(string searchIndexName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<bool> EmbedImageBlobAsync(Stream imageStream, string imageName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<bool> EmbedPDFBlobAsync(Stream blobStream, string blobName) => throw new NotImplementedException(); | ||
|
||
public Task EnsureSearchIndexAsync(string searchIndexName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
18 changes: 17 additions & 1 deletion
18
app/functions/EmbedFunctions/Services/PineconeEmbedService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
|
||
namespace EmbedFunctions.Services; | ||
|
||
internal sealed class PineconeEmbedService : IEmbedService | ||
{ | ||
public Task<bool> EmbedBlobAsync(Stream blobStream, string blobName) => throw new NotImplementedException( | ||
public Task CreateSearchIndexAsync(string searchIndexName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<bool> EmbedImageBlobAsync(Stream imageStream, string imageName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<bool> EmbedPDFBlobAsync(Stream blobStream, string blobName) => throw new NotImplementedException( | ||
"Pinecone embedding isn't implemented."); | ||
|
||
public Task EnsureSearchIndexAsync(string searchIndexName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
18 changes: 17 additions & 1 deletion
18
app/functions/EmbedFunctions/Services/QdrantEmbedService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
|
||
namespace EmbedFunctions.Services; | ||
|
||
internal sealed class QdrantEmbedService : IEmbedService | ||
{ | ||
public Task<bool> EmbedBlobAsync(Stream blobStream, string blobName) => throw new NotImplementedException(); | ||
public Task CreateSearchIndexAsync(string searchIndexName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<bool> EmbedImageBlobAsync(Stream imageStream, string imageName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<bool> EmbedPDFBlobAsync(Stream blobStream, string blobName) => throw new NotImplementedException(); | ||
|
||
public Task EnsureSearchIndexAsync(string searchIndexName, CancellationToken ct = default) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.