RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Introduce actix web template
jinhai6ad8d5799b2d
diff --git a/Cargo.toml b/Cargo.tomlindex f654acd44e..07afdc2965 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -6,5 +6,9 @@ edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]-actix = "0.13.1"-postgres = "0.19.7"\ No newline at end of file+actix-web = "4.3.1"+actix-rt = "2.8.0"+postgres = "0.19.7"++[[bin]]+name = "doc_gpt"\ No newline at end of filediff --git a/src/main.rs b/src/main.rsindex e7a11a969c..039d7421ee 100644--- a/src/main.rs+++ b/src/main.rs@@ -1,3 +1,19 @@-fn main() {- println!("Hello, world!");+use actix_web::{get, web, App, HttpServer, Responder};++#[get("/")]+async fn index() -> impl Responder {+ "Hello, World!"}++#[get("/{name}")]+async fn hello(name: web::Path<String>) -> impl Responder {+ format!("Hello {}!", &name)+}++#[actix_web::main]+async fn main() -> std::io::Result<()> {+ HttpServer::new(|| App::new().service(index).service(hello))+ .bind(("127.0.0.1", 9090))?+ .run()+ .await+}\ No newline at end of file