Retrieval Augmented Generation (RAG)

Retrieval-augmented generation (RAG) is an AI framework for improving the quality of LLM-generated responses by grounding the model on external sources of knowledge to supplement t...

阅读全文

basic concepts about the LLM

Large language models (LLMs) are advanced AI-based models trained to process and generate human language in a way that closely mirrors natural human communication. In a nutshell, L...

阅读全文

anything LLM with ollama - a private document chatbot

AnythingLLM is a full-stack application that enables you to turn any document, resource, or piece of content into context that any LLM can use as references during chatting. This a...

阅读全文

open-webui with ollama - ChatGPT like interface

Open WebUI (Formerly Ollama WebUI)The Open WebUI is designed to interact with the Ollama API through a specific route. When a request is made from the WebUI to Ollama, it is not di...

阅读全文

ollama - run large language models locally

LLM runner - OllamaOllama is an open source project for running and managing large language models locally. It bundles model weights, configuration, and data into a single package,...

阅读全文

huffman coding in deflate

In deflate dynamic huffman blocks, the huffman tree is stored with the canonical type. Canonical Huffman codea canonical Huffman code is a particular type of Huffman code with uniq...

阅读全文

zlib and gzip format

Raw DEFLATE compressed data (RFC 1951) are typically written with a zlib or gzip wrapper encapsulating the data, by adding a header and footer. This provides stream identification ...

阅读全文

deflate format

DEFLATE is a lossless data compression algorithm, it’s a combination of the LZ77 algorithm and Huffman coding. deflate blocksdeflate compressed data format consists a series of blo...

阅读全文

IPsec

概述

IPsec是IP Security的简称。IPsec不是具体指哪个协议,而是一组开放的基于网络层的,应用密码学的安全通信协议族,它是IETF制定的,在IP层对IP报文提供安全服务,目标是为IP提供高安全性的特性。
IPsec本身定义了如何在IP数据中增加字段来保证IP包的完整性、私有性和真实性。

阅读全文

数的素性测试

数的素性测试

概念:整数p(p>1)是素数,当且仅当其公因数只有1与其本身。
github源码

阅读全文