Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
帮我把下面这个结构体的范型去掉,改成普通的 map[string]interface{} [code]
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
帮我把下面这个结构体的范型去掉,改成普通的 map[string]interface{}
codetype Cache[Key comparable, Value any] struct { kv map[Key]Value // 查询完成后,缓存查询结果,fetcher pointer => { key => 实体} } - Assistantgo
type Cache struct { kv map[string]interface{} } func NewCache() *Cache { return &Cache{kv: make(map[string]interface{})} } func (c *Cache) Get(key string) (interface{}, bool) { val, ok := c.kv[key] return val, ok } func (c *Cache) Set(key string, value interface{}) { c.kv[key] = value } func (c *Cache) Delete(key string) { delete(c.kv, key) }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →