canopy
NSubstitute
Our great sponsors
canopy | NSubstitute | |
---|---|---|
13 | 11 | |
870 | 2,545 | |
14.8% | 1.3% | |
9.8 | 7.4 | |
19 days ago | about 1 month ago | |
Python | C# | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
canopy
-
How to choose the right type of database
Pinecone: A scalable vector database service that facilitates efficient similarity search in high-dimensional spaces. Ideal for building real-time applications in AI, such as personalized recommendation engines and content-based retrieval systems.
- Show HN: R2R – Open-source framework for production-grade RAG
-
Using Stripe Docs in your RAG pipeline with LlamaIndex
In this post we’ll build a Python script that uses StripeDocs Reader, a loader on LlamaIndex, that creates vector embeddings of Stripe's documentation in Pinecone. This allows a user to ask questions about Stripe Docs to an LLM, in this case OpenAI, and receive a generated response.
-
7 Vector Databases Every Developer Should Know!
Pinecone is a managed vector database service that simplifies the process of building and scaling vector search applications. It offers a simple API for embedding vector search into applications, providing accurate, scalable similarity search with minimal setup and maintenance.
-
Using Vector Embeddings to Overengineer 404 pages
In case of AIMD, I am doing this all in-memory, but you could also do this in a database (e.g. Pinecone). It all depends on how much data you have and how much compute you have available.
- Pinecone: Build Knowledgeable AI
-
How Modern SQL Databases Are Changing Web Development - #4 Into the AI Era
A RAG implementation's quality and performance highly depend on the similarity-based search of embeddings. The challenge arises from the fact that embeddings are usually high-dimensional vectors, and the knowledge base may have many documents. It's not surprising that the popularity of LLM catalyzed the development of specialized vector databases like Pinecone and Weaviate. However, SQL databases are also evolving to meet the new challenge.
- FLaNK Stack Weekly 11 Dec 2023
-
Embracing Modern Python for Web Development
In the dynamic world of web development, Python has emerged as a dominant force, especially in backend development – the primary focus of this blog post. Although it's worth mentioning that there are ongoing efforts to use Python for the frontend as well, like Reflex (previously known as Pynecone, they presumably had to change their name because of Pinecone vector database), which even garnered support from Y Combinator. Samuel Colvin (creator of Pydantic) is also working on FastUI (he literally just released the first version in December 2023).
- Canopy is an open-source Retrieval Augmented Generation (RAG) framework
NSubstitute
-
What am I missing about interfaces?
a. you might do so purely out of argo cult, i.e. because someone told you this was the right thing to do™, and that's a silly exercise. b. you could also be doing this for a good reason: to use the interface with a mocking tool like NSubstitute
-
The Moq-gate: You Either Die a Hero...
When comparing it to one of its most well-known alternatives, NSubstitute, which has "only" reached 85.6 million downloads, it is fair to say that Moq is the most widely used mocking library in the .NET ecosystem.
-
Since v4.20, Moq is harvesting email addresses
Maintainer rejected the PR. They have temporarily disabled the integration in https://github.com/moq/moq/pull/1375 but kept the SponsorLink project reference in the source code. It seems like their intent is to re-enable the integration at a later point :(
NSubstitute [0] might be an alternative. Or to fork Moq pre-4.20.
-
Setting up a simple testing project with C#
In terms of mocking there are several frameworks you can use, but I've mainly relied on Moq and NSubstitute. Within this demo, I'm going to use NSubstitute as I've found it a little easier to use.
- [AskJS] Can we talk about Stubs, Spies and Mocks in JavaScript and what a mess they are?
-
Coincidence? I think not
it will change the URL from https://github.com/nsubstitute/NSubstitute to https://github.dev/nsubstitute/NSubstitute (or you can just nav there yourself).
-
I need a C# crash course for experienced developers
NSubstitute
-
Moq vs NSubstitute: syntax cheat sheet
🔗 NSubstitute documentation | NSubstitute
-
My Top N Favorite Plugins and Tools for Developers
If you use NSubstitute (the best mocking .NET framework), then you have to install this small yet useful plugin right now. It kindly generates mocks and Arg.Is / Arg.Any.
-
Dot net libraries/tools that are usefull in many projects
Another nice mocking framework is NSubstitute https://nsubstitute.github.io/
What are some alternatives?
ragna - RAG orchestration framework ⛵️
Moq - Repo for managing Moq 4.x [Moved to: https://github.com/moq/moq]
simple-pgvector-python - An Abstraction Using a similar API to Pinecone but implemented with pgvector python
AutoFixture - AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.
deeplake - Database for AI. Store Vectors, Images, Texts, Videos, etc. Use with LLMs/LangChain. Store, query, version, & visualize any AI data. Stream data in real-time to PyTorch/TensorFlow. https://activeloop.ai
FakeItEasy - The easy mocking library for .NET
mlx-examples - Examples in the MLX framework
NUnit - NUnit Framework
tiger - Open Source LLM toolkit to build trustworthy LLM applications. TigerArmor (AI safety), TigerRAG (embedding, RAG), TigerTune (fine-tuning)
Rhino Mocks
tonic_validate - Metrics to evaluate the quality of responses of your Retrieval Augmented Generation (RAG) applications.
Bogus - :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.