GenRead
GenRead copied to clipboard
Code and Checkpoints for "Generate rather than Retrieve: Large Language Models are Strong Context Generators" in ICLR 2023.
Let's consider an example: "I want to know how much the tuition fee for the Computer Science department at New York University is in 2024". At this point, LLM, which...
Dear Authors Thanks for sharing the great work. For the proposed Clustering-based prompts, I have a few question: Q1: Step 1: get 1 initial document per question. Wondering why we...
Huggingface -> Hugging Face
# 1.代码如下。 # 测试generate_then_read代码在glm9b下的性 from openai import OpenAI import re import json from tqdm import tqdm class ChatGLM4(object): def __init__(self, api_key="EMPTY", base_url="http://x.x.x.x:8000/v1/",model_name="glm-4"): self.base_url = base_url self.model_name = model_name # 初始化...