Skip to content

Instantly share code, notes, and snippets.

View LuceCarter's full-sized avatar

Luce Carter LuceCarter

View GitHub Profile
@LuceCarter
LuceCarter / Actor.cs
Last active February 28, 2025 15:37
A set of code snippets for use in the Migrating from PostgreSQL to MongoDB in an EF Core App tutorial
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.EntityFrameworkCore;
namespace MigratedMoviesEFCore.Models;
[Collection("actors")]
public class Actor
{
[BsonId]
@LuceCarter
LuceCarter / BringingItTogether.cs
Created January 23, 2025 17:26
ai_agent_with_semantic_kernel_mongodb
OpenAIPromptExecutionSettings settings = new()
{
ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions
};
Console.WriteLine("What would you like to make for dinner?");
var input = Console.ReadLine();
string ingredientsPrompt = @"This is a list of ingredients available to the user:
{{IngredientsPlugin.GetIngredientsFromCupboard}}
@LuceCarter
LuceCarter / asking_questions.cs
Last active August 30, 2024 15:48
SemanticKernelWithMongoDBAtlas
Console.WriteLine("Welcome to the Movie Recommendation System!");
Console.WriteLine("Type 'x' and press Enter to exit.");
Console.WriteLine("============================================");
Console.WriteLine();
while(true)
{
Console.WriteLine("Tell me what sort of film you want to watch..");
Console.WriteLine();
@LuceCarter
LuceCarter / intro_mongodb_nodejs.md
Last active June 18, 2024 17:42
A list of useful links related to MongoDB and NodeJS
@LuceCarter
LuceCarter / uselinks.md
Created May 15, 2024 15:01
Did Einstein Drink Coffee? Building a RAG app with Semantic Kernel and MongoDB Atlas
@LuceCarter
LuceCarter / EmbeddingResponse.cs
Created April 8, 2024 10:49
Code snippets for the MongoDB Atlas Vector Search with C# and Blazor tutorial
namespace SeeSharpMovies.Models
{
public class EmbeddingResponse
{
public string @object { get; set; }
public List<Data> data { get; set; }
public string model { get; set; }
public Usage usage { get; set; }
}