- Embedding 向量库,用于将用户请求再本地只是进行检索,检索的到的结果用于增强LLM输出结果 例如原本的提问
how to booking
how to booking
Answer using the following information:
148. [Patterns (YC S21) is hiring to automate analytics with LLMs](https://patterns.app/) Hacker News
149. [Building a fair multi-tenant queuing system](https://www.inngest.com/blog/building-the-inngest-queue-pt-i-fairness-multi-tenancy) Hacker News
3. Bookings
3.1 Users may make a booking through our website or mobile application.
3.2 You must provide accurate, current and complete information during the reservation process. You are responsible for all charges incurred under your account.
3.3 All bookings are subject to vehicle availability.
634. [云南镇雄山体滑坡灾害已致 20人遇难,当前救援存在哪些难点?](https://www.zhihu.com/question/640781088) 知乎热榜
635. [快过年了,真的是无心工作。。。](https://www.v2ex.com/t/1010826) v2ex 最热主题
636. [tinder 划到一个美女,由于长得太好看还是不敢相信是真的,并且已通过 app 人脸认证](https://www.v2ex.com/t/1010854) v2ex 最热主题
4. Cancellation Policy
4.1 Reservations can be cancelled up to 7 days prior to the start of the booking period.
4.2 If the booking period is less than 3 days, cancellations are not permitted.
后面提供的即为向量库检索到的信息,可以看到并不一定相关,这也是需要优化选型、迭代的
- Router
如果有多个本地知识库,可以使用llm的能力对知识库进行路由,来达到预期最优的结果,也方便排除其他知识的干扰。可以类比于二级索引 prompt:
ChatRequest { messages = [UserMessage { name = null contents = [TextContent { text = "Based on the user query, determine the most suitable data source(s) to retrieve relevant information from the following options:
1: biography of John Doe
2: weibo text
3: terms of use of car rental company
It is very important that your answer consists of either a single number or multiple numbers separated by commas and nothing else!
User query: how to booking" }] }], parameters = DefaultChatRequestParameters{modelName='null', temperature=null, topP=null, topK=null, frequencyPenalty=null, presencePenalty=null, maxOutputTokens=null, stopSequences=[], toolSpecifications=[], toolChoice=null, responseFormat=null} }
- Chat 最后我们得到结果
To make a booking, follow these steps:
1. **Access the Platform**:
- Visit the website or open the mobile application where bookings are facilitated (as mentioned in **3.1**).
2. **Provide Accurate Information**:
- During the reservation process, ensure all details (e.g., dates, personal information) are **accurate, current, and complete** (per **3.2**).
- Note that you are responsible for all charges under your account.
3. **Check Availability**:
- Confirm that the service (e.g., vehicle) is available for your desired dates (**3.3**).
4. **Review Cancellation Policy**:
- Cancellations are allowed up to **7 days before the booking period** (**4.1**).
- For bookings lasting **less than 3 days**, cancellations are **not permitted** (**4.2**).
For further context unrelated to bookings:
- Job opportunities like **Patterns (YC S21)** automating analytics with LLMs are listed on Hacker News (ref. **148**).
- Technical discussions (e.g., multi-tenant queuing systems) may also appear on platforms like Hacker News (ref. **149**).
Let me know if you need help with a specific booking system
- ChatMemory 每次用户的提问和AI的回答会追加至memory,用于多伦对话的记忆,每次提问会将多轮对话一并提供给llm,llm每次访问本身是无状态的。 一个最简单的chatMemory实现方案及窗口,只记录最近。其他待后续展开