LINUX.ORG.RU
ФорумTalks

Женщину вынули, автомат засунули

 gpt4


1

1

В общем, продавцы и прочие консультанты могут начинать собирать вещички:

Покупатель говорит: Дайте мне одну упаковку пива, две упаковки минеральной воды и три упаковки бутилированной воды. Представить в виде json с полем quantity и name.

{ "order": [ { "name": "пиво", "quantity": 1 }, { "name": "минеральная вода", "quantity": 2 }, { "name": "бутилированная вода", "quantity": 3 } ] }
★★★★★

Ответ на: комментарий от KivApple

я просто тыкаю пальцем в понравившуюся булочку, а название если и прочитаю то дома и только если будет очень скучно

Будешь лазерной указкой тыкать )

foror ★★★★★
() автор топика
Ответ на: комментарий от Rastafarra

Предлагаешь покупателю артикулы учить? Или ты про данные для gpt? Так это просто черновой набросок.

https://marcotm.com/articles/information-extraction-with-large-language-models-parsing-unstructured-data-with-gpt/

Your task is to parse an unstructured job posting and turn it into a JSON containing the most important information. The job posting can describe one or more jobs at the same company. The JSON should consist of the following information:

  • The company name (field name: «companyName», field type: string)
  • the location of the company (field name: «companyLocation», field type: string); if not explictily stated, you can try to infer the company’s actual location from other clues, e.g., something like «Remote (US)» usually means that the company is located in the US; if the location cannot be inferred, set it to null
  • a short description of what the company is doing or building (field name: «companyDescription», field type: string); try to keep it short (max length: ca. 300 characters)
  • a list of advertised jobs (field name: «jobs», field type: array). Each element of the «jobs» array should contain the following fields:
  • The job title (field name: «jobTitle», field type: string); the job title should be given in the singular form (i.e., Frontend Developer instead of Frontend Developers)
  • the salary range (field name: «salary», field type: string); only include explictly stated salary amounts, otherwise set to null
  • whether equity is part of the compensation (field name: «equity», field type: boolean)
  • the benefits (field name: «benefits», field type: string); include things like 401k, insurance, equipment, child care, etc. if stated, otherwise set to null
  • the location of the job (field name: «location», field type: string)
  • whether this is a job for senior/experienced candidates (field name: «senior», field type: boolean); typically senior, staff, lead, principal, vp, cto, etc. positions are all regarded as senior level
  • whether it is a remote opportunity (field name: «remote», field type: boolean)
  • whether it can be done onsite from an office (field name: «onsite», field type: boolean)
  • whether it can be done part-time (field name: «partTime», field type: boolean)
  • whether it can be done full-time (field name: «fullTime», field type: boolean)
  • the URL to the specific job description (field name: «jobUrl», field type: string)
  • and any specific requirements/skills that might be stated (field name: «requirements», field type: string). In general, if certain information is not stated, set the respective field to null. If the company seeks more than one person for the same role, include the role only once.

This is the job posting:

%s

foror ★★★★★
() автор топика
Последнее исправление: foror (всего исправлений: 3)
Ответ на: комментарий от no-such-file

Они плохо масштабируются. Робота один раз спроектировал, а дальше они сами себя штампуют, только подвози алюминиевые чушки с ближайших астероидов (впрочем и этим роботы сами займутся).

foror ★★★★★
() автор топика
Последнее исправление: foror (всего исправлений: 1)
Ответ на: комментарий от no-such-file

Слишком дорого пока. Продавщицы штампуются гораздо проще и дешевле.

Ну, не знаю gpt4 по 0.02 USD за 1000 токенов, а продавцу только зарплаты в день нужно под 40 USD выдать до вычета налогов. Да еще в резерве одного нужно держать, а железо на порядки проще резервируется.

foror ★★★★★
() автор топика
Последнее исправление: foror (всего исправлений: 1)
Ответ на: комментарий от foror

продавцу

Продавец кое-что ещё делает, кроме того что просто трындит.

no-such-file ★★★★★
()
Закрыто добавление комментариев для недавно зарегистрированных пользователей (со score < 50)