# alibabacloud-tablestore-java-rag-demo **Repository Path**: aliyun/alibabacloud-tablestore-java-rag-demo ## Basic Information - **Project Name**: alibabacloud-tablestore-java-rag-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-08 - **Last Updated**: 2025-05-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JDK 依赖 Java 21 # Build 打包 ```shell ./gradlew assemble ``` # 启动 #### 1. 设置环境变量 ```shell export DASHSCOPE_API_KEY=xxx export TABLESTORE_ACCESS_KEY_ID=xxx export TABLESTORE_ACCESS_KEY_SECRET=xxx export TABLESTORE_ENDPOINT=xxx export TABLESTORE_INSTANCE_NAME=xxx export TABLESTORE_REGION=cn-hangzhou ``` #### 2. 启动Demo ```shell ./demo ``` #### 3. 输入提示 Type `help`. ![help](img/help.png) #### 4. 初始化表和索引 输入 `init` 即可。 #### 5. 导入数据 通过以下方式即可完成数据的导入。 - 导入PDF文件: `import-pdf xxxx.pdf` - 导入文本文件: `import-text xxx.txt` - 导入单行数据: `add "一段文本"` #### 6. rag 与 llm 对比测试 ![help](img/demo.png)