Skip to content

Instantly share code, notes, and snippets.

View fabiofa87's full-sized avatar

Fabio Faria fabiofa87

  • Rio de Janeiro - Brasil
View GitHub Profile
@fabiofa87
fabiofa87 / yoshisugestions.md
Last active January 19, 2024 15:48
API Call React

Api Service.tsx

import axios from 'axios';

const apiService = {
 get: function<T = any>(url: string, options: T = {}): Promise<AxiosResponse<T>> {
   return axios.get<T>(url, options);
 },
 post: function<T = any>(url: string, data: T, options: T = {}): Promise<AxiosResponse<T>> {
 return axios.post(url, data, options);
@fabiofa87
fabiofa87 / gen-ai.md
Created January 8, 2024 13:38
GEN AI Context explanation

What is

GenAI is a platform from ABInbev, a global alcoholic beverages company with a presence in South America, Central America, and Europe. The platform under construction aims to create a Retrieval-augmented Generation (RAG) utilized for internal purposes such as training, daily sales insights, etc.

How it works technically?

Initially, there are 2 agents:

  1. RAG Connector
  2. Orchestrator

Application ID

dce4893f-2e60-4c6a-9167-72db2c5f277f

Template ID

fd6ab2ab-b2c2-4f40-a9bd-0b8034ffc2e1

Template prompt:

  • "prompt":
  • "Answer the question based ONLY on the context provided below.\n
  • Questions related to subjects other than: BrewDocs, BrewDat, GitHub access management, Lakehouse architecture and Delta Share should be considered OUT-OF-SCOPE and should ALWAYS be answered with "I don't know".\n
  • Subjects such as: Music, Games, Sports and Politics should be considered OUT-OF-SCOPE and should ALWAYS be answered with "I dont't know".\n
@fabiofa87
fabiofa87 / template.md
Last active November 14, 2023 15:25
Refinment stories template

User Story Template

As a [persona], I want [behavior] so that [rationale].

Maybe a more detailed technical explanation of the preceding line.

Acceptance Criteria

  • Verify that A happens
  • Verify that B is present
@fabiofa87
fabiofa87 / readme.md
Created August 10, 2023 12:50
Duvidas interfy

​1 - Quando criamos documento, queremos sempre associá-lo a um Template. Na API, não encontrei uma forma de fazer vendo a documentação.

2 - Quando criamos uma pasta, pela API, recebemos retorno de status 200 sem o conteúdo da criação, quando criamos na plataforma o retorno é 201 com retorno da pasta criada. Esse comportamento está diferente e na API, utilizando serviços como Insomnia ou Postman, não cria a pasta. É correto? Como corrigir?

3 - Alguns arquivos precisam de validação, que é feita na plataforma, existe rota na API para esse fim? Se sim, quais?

4 - Documentos possuem validade quando inseridos no sistema?

5 - Na rota de criação de templates, precisamos passar no 'form' algumas informações. Como saber quais são obrigatórias e porque são obrigatórias? De forma que consigamos nortear as escolhas e auxiliar o usuário na integração do sistema.

const SETORES = [
{ value: "comercio", title: "Comércio" },
{ value: "turismo", title: "Turismo" },
{ value: "servicos", title: "Serviços" },
];
interface PriorizarOuTriar {
etapa: Etapa;
atoNormativo: AtosNormativos;
}
interface Classificar {