Skip to content

Commit

Permalink
Merge pull request #174 from Azure-Samples/gk/fix-nextjs-docker-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thegovind authored Nov 6, 2023
2 parents 8be847f + cdd5d53 commit 8fe0e27
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public async Task<IActionResult> GetRecommendations([FromBody] MiyagiContext miy
sw.Start();
// ========= Import semantic functions as plugins =========
log.LogDebug("Path: {S}", Directory.GetCurrentDirectory());
var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "plugins");
var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Plugins");
var advisorPlugin = _kernel.ImportSemanticFunctionsFromDirectory(pluginsDirectory, "AdvisorPlugin");

// ========= Import native function =========
Expand Down Expand Up @@ -95,7 +95,7 @@ public async Task<IActionResult> GetRecommendations([FromBody] MiyagiContext miy
public async Task<IActionResult> GetRecommendationsRunAsync([FromBody] MiyagiContext miyagiContext)
{
// ========= Import semantic functions as plugins =========
var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "plugins");
var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Plugins");
var advisorPlugin = _kernel.ImportSemanticFunctionsFromDirectory(pluginsDirectory, "AdvisorPlugin");

// ========= Import native function =========
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task<IActionResult> GetRecommendationsWithPlanner([FromBody] Miyagi
log.BeginScope("InvestmentController.GetRecommendationsAsync");
// ========= Import Advisor skill from local filesystem =========
log.LogDebug("Path: {P}", Directory.GetCurrentDirectory());
var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "plugins");
var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Plugins");
_kernel.ImportSemanticFunctionsFromDirectory(pluginsDirectory, "AdvisorPlugin");
_kernel.ImportFunctions(new UserProfilePlugin(), "UserProfilePlugin");
var memoryCollection = _kernelSettings.CollectionName;
Expand Down Expand Up @@ -105,7 +105,7 @@ public async Task<IActionResult> GetRecommendations([FromBody] MiyagiContext miy
log.BeginScope("InvestmentController.GetRecommendationsAsync");
// ========= Import Advisor skill from local filesystem =========
log.LogDebug("Path: {P}", Directory.GetCurrentDirectory());
var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "plugins");
var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Plugins");
var advisorPlugin = _kernel.ImportSemanticFunctionsFromDirectory(pluginsDirectory, "AdvisorPlugin");
var userProfilePlugin = _kernel.ImportFunctions(new UserProfilePlugin(), "UserProfilePlugin");
var memoryCollection = _kernelSettings.CollectionName;
Expand Down
4 changes: 2 additions & 2 deletions services/recommendation-service/dotnet/Utils/RepoUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ namespace GBB.Miyagi.RecommendationService.Utils;
public static class RepoUtils
{
/// <summary>
/// Scan the local folders from the repo, looking for "plugins" folder.
/// Scan the local folders from the repo, looking for "Plugins" folder.
/// </summary>
/// <returns>The full path to samples/skills</returns>
public static string GetSamplePluginsPath()
{
const string Parent = "";
const string Folder = "plugins";
const string Folder = "Plugins";

bool SearchPath(string pathToFind, out string result, int maxAttempts = 10)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"collectionName": "miyagi-embeddings",
"bingApiKey": "<Your Bing API Key>",
"cosmosDbContainerName": "recommendations",
"comosDbConnectionString": "<Your Cosmos DB Connection String>",
"cosmosDbConnectionString": "<Your Cosmos DB Connection String>",
"logLevel": "Trace"
}

0 comments on commit 8fe0e27

Please sign in to comment.