Comments (6)
@vlad-tsoy - I'm creating my index with these fields:
fields = [
SearchField(name="id", type=SearchFieldDataType.String, key=True, filterable=True, sortable=False, facetable=False, analyzer_name="keyword"),
#SearchField(name="user", type=SearchFieldDataType.String, sortable=False, filterable=True, facetable=False), #used for filtering
#SearchField(name="chatThreadId", type=SearchFieldDataType.String, sortable=False, filterable=True, facetable=False), #used for filtering
SearchField(name="pageContent", type=SearchFieldDataType.String, sortable=False, filterable=False, facetable=False),
SearchField(name="metadata", type=SearchFieldDataType.String, sortable=False, filterable=False, facetable=False),
SearchField(name="embedding", type=SearchFieldDataType.Collection(SearchFieldDataType.Single), vector_search_dimensions=1536, vector_search_profile_name="myHnswProfile"),
SearchField(name="parent_id", type=SearchFieldDataType.String, sortable=True, filterable=True, facetable=True)
]
And configured my skillset output mappings to match:
mappings=[
InputFieldMappingEntry(name="pageContent", source="/document/pages/*"),
InputFieldMappingEntry(name="embedding", source="/document/pages/*/vector"),
InputFieldMappingEntry(name="metadata", source="/document/metadata_storage_name")
],
from azurechat.
i had the same problem and solved it with a quick fix. but i think someone should have a closer look at it.
the problem is, that my search had the content in a different field as pageContent so my content got lost in the FormatCitations Function.
when i update the FormatCitations Function it works for me:
(citation-service.ts)
export const FormatCitations = (citation: any[]) => {
const withoutEmbedding: DocumentSearchResponse[] = [];
citation.forEach((d) => {
withoutEmbedding.push({
score: d.score,
document: {
metadata: d.document.metadata,
pageContent: d.document.pageContent || d.document.content || d.document.chunk,
chatThreadId: d.document.chatThreadId,
id: "",
user: "",
},
});
});
return withoutEmbedding;
};
pageContent: d.document.pageContent || d.document.content || d.document.chunk
this should include your possible fields with the content.
or just make sure that the content in your Azure Search is in the Field pageContent.
from azurechat.
I'm having the same issue trying to connect to the index I've created using integrated vectorization. The wizard and python examples create the same index format, and when I connect the extension I get exactly the results in OP's screenshot.
I'm looking for an approach to use integrated vectorization via Indexer Skillsets to maintain indexes for this solution.
from azurechat.
Solved - modified the index and the output mappings of my skillset
from azurechat.
Solved - modified the index and the output mappings of my skillset
I'm also trying to use integrated vectorization, how did you modify the index?
from azurechat.
@vlad-tsoy - I'm creating my index with these fields:
fields = [ SearchField(name="id", type=SearchFieldDataType.String, key=True, filterable=True, sortable=False, facetable=False, analyzer_name="keyword"), #SearchField(name="user", type=SearchFieldDataType.String, sortable=False, filterable=True, facetable=False), #used for filtering #SearchField(name="chatThreadId", type=SearchFieldDataType.String, sortable=False, filterable=True, facetable=False), #used for filtering SearchField(name="pageContent", type=SearchFieldDataType.String, sortable=False, filterable=False, facetable=False), SearchField(name="metadata", type=SearchFieldDataType.String, sortable=False, filterable=False, facetable=False), SearchField(name="embedding", type=SearchFieldDataType.Collection(SearchFieldDataType.Single), vector_search_dimensions=1536, vector_search_profile_name="myHnswProfile"), SearchField(name="parent_id", type=SearchFieldDataType.String, sortable=True, filterable=True, facetable=True) ]
And configured my skillset output mappings to match:
mappings=[ InputFieldMappingEntry(name="pageContent", source="/document/pages/*"), InputFieldMappingEntry(name="embedding", source="/document/pages/*/vector"), InputFieldMappingEntry(name="metadata", source="/document/metadata_storage_name") ],
Thank you, Michael!
from azurechat.
Related Issues (20)
- Editing / Deleting Personas should be only allowed for the Autor and Admins
- When testing locally using .env.local with all azure services configured, error raised in MicAudioSource.js and also RestError: Authorization failed.
- When trying to attach a file I get this error - RestError: Authorization failed
- When using Dall-E, pre-checked prompt variables are not used.
- FEATURE: Ability to choose between GPT-3.5 and GPT-4 when creating a persona
- FEATURE: Ability to specify the temperature for a Persona
- Image upload fails HOT 2
- Impossible to deploy the App HOT 1
- Enable / Disable features? HOT 2
- Error after deployment from VSCode in middleware withtout changes HOT 1
- AriaLabel is missing in main-menu.tsx
- Search Extension Based on AI Search Returning Incomplete or Incorrect Citations
- Add function to allow for multiple AI Agents for Azure Deployed Endpoints for LLMs
- v2 Upgrade commit detail HOT 1
- Vision Issue - 400 HOT 2
- Chat start buttons UX does not differentiate blank from extension conversations
- Adding extensions doesnt work unless additional fields are added to .env
- ServiceNow Integration
- Deployment of AzureChat via Azure Developer CLI successful, but WebApp shows ":( Application Error" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azurechat.